17 #ifndef BT_KINEMATIC_CHARACTER_CONTROLLER_H
18 #define BT_KINEMATIC_CHARACTER_CONTROLLER_H
108 preStep ( collisionWorld);
109 playerStep (collisionWorld, deltaTime);
129 virtual void setWalkDirection(
const btVector3& walkDirection);
136 virtual void setVelocityForTimeInterval(
const btVector3& velocity,
145 void setFallSpeed (
btScalar fallSpeed);
146 void setJumpSpeed (
btScalar jumpSpeed);
147 void setMaxJumpHeight (
btScalar maxJumpHeight);
148 bool canJump ()
const;
157 void setMaxSlope(
btScalar slopeRadians);
163 m_useGhostObjectSweepTest = useGhostObjectSweepTest;
166 bool onGround ()
const;
167 void setUpInterpolate (
bool value);
170 #endif // BT_KINEMATIC_CHARACTER_CONTROLLER_H
btPairCachingGhostObject * m_ghostObject
void setUseGhostSweepTest(bool useGhostObjectSweepTest)
btScalar m_velocityTimeInterval
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
btScalar m_maxSlopeRadians
btCollisionDispatcher supports algorithms that handle ConvexConvex and ConvexConcave collision pairs...
btVector3 m_normalizedDirection
btScalar m_maxSlopeCosine
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
btScalar m_verticalVelocity
btVector3 m_touchingNormal
btScalar m_currentStepOffset
bool m_useGhostObjectSweepTest
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations...
The btRigidBody is the main class for rigid body objects.
btVector3 m_currentPosition
btConvexShape * m_convexShape
virtual void updateAction(btCollisionWorld *collisionWorld, btScalar deltaTime)
btActionInterface interface
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
btManifoldArray m_manifoldArray
keep track of the contact manifolds
btVector3 m_walkDirection
this is the desired walk direction, set by the user
btVector3 m_targetPosition
btScalar m_verticalOffset
CollisionWorld is interface and container for the collision detection.
btKinematicCharacterController is an object that supports a sliding motion in a world.
#define BT_DECLARE_ALIGNED_ALLOCATOR()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...