re-enable non-static, non-body collidables
This commit is contained in:
parent
1e113d8598
commit
ff0c3c099a
@ -625,7 +625,10 @@ public class PhysicsEntityUtils {
|
|||||||
}
|
}
|
||||||
Collidable collidable;
|
Collidable collidable;
|
||||||
double mass = 1.0f;
|
double mass = 1.0f;
|
||||||
long categoryBit = Collidable.TYPE_STATIC_BIT;
|
long categoryBit = Collidable.TYPE_CREATURE_BIT;
|
||||||
|
if(physicsTemplate.getKinematic()){
|
||||||
|
categoryBit = Collidable.TYPE_STATIC_BIT;
|
||||||
|
}
|
||||||
CollisionEngine.lockOde();
|
CollisionEngine.lockOde();
|
||||||
DGeom geom = null;
|
DGeom geom = null;
|
||||||
switch(physicsTemplate.getType()){
|
switch(physicsTemplate.getType()){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user