prevents characters from colliding with sensors
@@ -933,6 +933,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;
}
