Fix Kinematic Character Controller compile
This commit is contained in:
parent
8a4e39599b
commit
fe3fa62a97
|
@ -44,6 +44,8 @@ class KinematicCharacterController extends Trait {
|
|||
static var trans1:bullet.Bt.Transform;
|
||||
static var quat = new Quat();
|
||||
|
||||
static inline var CF_CHARACTER_OBJECT = 16;
|
||||
|
||||
public function new(mass = 1.0, shape = ControllerShape.Capsule, jumpSpeed = 8.0, friction = 0.5, restitution = 0.0,
|
||||
collisionMargin = 0.0, animated = false, group = 1) {
|
||||
super();
|
||||
|
@ -139,7 +141,7 @@ class KinematicCharacterController extends Trait {
|
|||
|
||||
body = new bullet.Bt.PairCachingGhostObject();
|
||||
body.setCollisionShape(isConvexHull ? shapeConvexHull : shapeConvex);
|
||||
body.setCollisionFlags(bullet.Bt.CollisionObject.CF_CHARACTER_OBJECT);
|
||||
body.setCollisionFlags(CF_CHARACTER_OBJECT);
|
||||
body.setWorldTransform(trans1);
|
||||
body.setFriction(friction);
|
||||
body.setRollingFriction(friction);
|
||||
|
|
Loading…
Reference in a new issue