Browse Source

Removed kinematic flag from BulletCharacterController. Thanks to AL.dev for hinting me at this unnecessary flag.

enn0x 14 years ago
parent
commit
9bb87232a1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      panda/src/bullet/bulletCharacterControllerNode.cxx

+ 1 - 2
panda/src/bullet/bulletCharacterControllerNode.cxx

@@ -41,8 +41,7 @@ BulletCharacterControllerNode(BulletShape *shape, float step_height, const char
   _ghost->setWorldTransform(trans);
   _ghost->setWorldTransform(trans);
   _ghost->setInterpolationWorldTransform(trans);
   _ghost->setInterpolationWorldTransform(trans);
   _ghost->setCollisionShape(convex);
   _ghost->setCollisionShape(convex);
-  _ghost->setCollisionFlags(btCollisionObject::CF_CHARACTER_OBJECT
-                          | btCollisionObject::CF_KINEMATIC_OBJECT);
+  _ghost->setCollisionFlags(btCollisionObject::CF_CHARACTER_OBJECT);
 
 
   // Setup up axis
   // Setup up axis
   _up = get_default_up_axis();
   _up = get_default_up_axis();