Skip to content

Commit

Permalink
Merge PR #3008 by @0shine0 - physics tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Jul 22, 2017
2 parents 2da968e + 417b18b commit 1fdae89
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -927,6 +927,7 @@ public BulletSweepCallback sweep(org.terasology.math.geom.Vector3f startPos, org
BulletSweepCallback callback = new BulletSweepCallback(collider, new org.terasology.math.geom.Vector3f(0, 1, 0), slopeFactor);
callback.collisionFilterGroup = collider.getBroadphaseHandle().collisionFilterGroup;
callback.collisionFilterMask = collider.getBroadphaseHandle().collisionFilterMask;
callback.collisionFilterMask = (short)(callback.collisionFilterMask & (~StandardCollisionGroup.SENSOR.getFlag()));
collider.convexSweepTest((ConvexShape) (collider.getCollisionShape()), startTransform, endTransform, callback, allowedPenetration);
return callback;
}
Expand Down

0 comments on commit 1fdae89

Please sign in to comment.