Merge pull request #1907 from Lykdraft/patch-1

Bullet: Collision margin was inverted.
This commit is contained in:
Lubos Lenco 2020-10-03 10:53:51 +02:00 committed by GitHub
commit 00883c5133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ class RigidBody extends iron.Trait {
}
inline function withMargin(f: Float) {
return f - f * collisionMargin;
return f + f * collisionMargin;
}
public function notifyOnReady(f: Void->Void) {