|
Blender V4.5
|
#include "LinearMath/btVector3.h"#include "btCharacterControllerInterface.h"#include "BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h"Go to the source code of this file.
| void applyImpulse | ( | const btVector3 & | v | ) |
Definition at line 177 of file btKinematicCharacterController.h.
References applyImpulse(), btVector3, jump(), and v.
Referenced by applyImpulse(), and applyImpulse().
| BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
References BT_DECLARE_ALIGNED_ALLOCATOR, btConvexShape(), btKinematicCharacterController(), and btVector3.
| btKinematicCharacterController::btKinematicCharacterController | ( | btPairCachingGhostObject * | ghostObject, |
| btConvexShape * | convexShape, | ||
| btScalar | stepHeight, | ||
| const btVector3 & | up = btVector3(1.0, 0.0, 0.0) ) |
Definition at line 134 of file btKinematicCharacterController.cpp.
References bounce_fix, btConvexShape(), btRadians(), btVector3, full_drop, m_addedMargin, m_angularDamping, m_AngVel, m_convexShape, m_currentStepOffset, m_fallSpeed, m_ghostObject, m_gravity, m_interpolateUp, m_jumpAxis, m_jumpSpeed, m_linearDamping, m_maxPenetrationDepth, m_SetjumpSpeed, m_turnAngle, m_up, m_useGhostObjectSweepTest, m_useWalkDirection, m_velocityTimeInterval, m_verticalOffset, m_verticalVelocity, m_walkDirection, m_wasJumping, m_wasOnGround, setMaxSlope(), setStepHeight(), and setUp().
Referenced by BT_DECLARE_ALIGNED_ALLOCATOR().
| btVector3 btKinematicCharacterController::computeReflectionDirection | ( | const btVector3 & | direction, |
| const btVector3 & | normal ) |
Definition at line 112 of file btKinematicCharacterController.cpp.
References btVector3.
Referenced by updateTargetPositionBasedOnCollision().
| void debugDraw | ( | btIDebugDraw * | debugDrawer | ) |
btActionInterface interface
References btVector3, debugDraw(), and setUp().
Referenced by btConvexPenetrationDepthSolver::calcPenDepth(), btGjkEpaPenetrationDepthSolver::calcPenDepth(), btMinkowskiPenetrationDepthSolver::calcPenDepth(), debugDraw(), debugDraw(), debugDraw(), btDiscreteCollisionDetectorInterface::getClosestPoints(), btGjkPairDetector::getClosestPoints(), SphereTriangleDetector::getClosestPoints(), and btGjkPairDetector::getClosestPointsNonVirtual().
| btScalar getAngularDamping | ( | ) | const |
Definition at line 158 of file btKinematicCharacterController.h.
References getAngularDamping(), and m_angularDamping.
Referenced by getAngularDamping().
|
virtual |
References btVector3, and getAngularVelocity().
Referenced by getAngularVelocity(), and getAngularVelocity().
| btScalar getFallSpeed | ( | ) | const |
Definition at line 169 of file btKinematicCharacterController.h.
References getFallSpeed(), and m_fallSpeed.
Referenced by getFallSpeed().
| btPairCachingGhostObject * btKinematicCharacterController::getGhostObject | ( | ) |
Definition at line 172 of file btKinematicCharacterController.cpp.
References m_ghostObject.
Referenced by getGravity(), stepDown(), stepForwardAndStrafe(), and stepUp().
| btVector3 getGravity | ( | ) | const |
References btVector3, getGhostObject(), getGravity(), getMaxPenetrationDepth(), getMaxSlope(), setMaxPenetrationDepth(), and setMaxSlope().
Referenced by getGravity().
| btScalar getJumpSpeed | ( | ) | const |
Definition at line 171 of file btKinematicCharacterController.h.
References getJumpSpeed(), and m_jumpSpeed.
Referenced by getJumpSpeed().
| btScalar getLinearDamping | ( | ) | const |
Definition at line 156 of file btKinematicCharacterController.h.
References getLinearDamping(), and m_linearDamping.
Referenced by getLinearDamping().
|
virtual |
References btVector3, and getLinearVelocity().
Referenced by getLinearVelocity(), and btRaycastVehicle::updateVehicle().
| btScalar btKinematicCharacterController::getMaxPenetrationDepth | ( | ) | const |
Definition at line 922 of file btKinematicCharacterController.cpp.
References m_maxPenetrationDepth.
Referenced by getGravity().
| btScalar btKinematicCharacterController::getMaxSlope | ( | ) | const |
Definition at line 912 of file btKinematicCharacterController.cpp.
References m_maxSlopeRadians.
Referenced by getGravity().
| btQuaternion btKinematicCharacterController::getRotation | ( | btVector3 & | v0, |
| btVector3 & | v1 ) const |
Definition at line 987 of file btKinematicCharacterController.cpp.
References btVector3, and shortestArcQuatNormalize2().
Referenced by getRotation(), getRotation(), needsCollision(), operator*(), and setUpVector().
| btScalar getStepHeight | ( | ) | const |
Definition at line 167 of file btKinematicCharacterController.h.
References getStepHeight(), and m_stepHeight.
Referenced by getStepHeight().
| const btVector3 & getUp | ( | ) |
|
static |
Definition at line 937 of file btKinematicCharacterController.cpp.
References btVector3.
References btVector3, jump(), and v.
Referenced by applyImpulse(), BKE_mask_spline_feather_resolution(), BLI_str_cursor_step_utf32(), BLI_str_cursor_step_utf8(), boid_brain(), jump(), parse_and(), parse_cmp_chain(), parse_or(), parse_set_jump(), ui_do_but_textedit(), ui_textedit_delete(), and ui_textedit_move().
|
virtual |
References btCollisionObject, btVector3, getRotation(), needsCollision(), and setUpVector().
Referenced by createPredictiveContactsInternal(), integrateTransformsInternal(), needsCollision(), btCollisionWorld::objectQuerySingleInternal(), btCollisionWorld::rayTestSingleInternal(), recoverFromPenetration(), stepDown(), stepForwardAndStrafe(), and stepUp().
| bool onGround | ( | ) | const |
References onGround().
Referenced by onGround().
| btVector3 btKinematicCharacterController::parallelComponent | ( | const btVector3 & | direction, |
| const btVector3 & | normal ) |
Definition at line 120 of file btKinematicCharacterController.cpp.
References btVector3.
Referenced by perpindicularComponent(), and updateTargetPositionBasedOnCollision().
| btVector3 btKinematicCharacterController::perpindicularComponent | ( | const btVector3 & | direction, |
| const btVector3 & | normal ) |
Definition at line 129 of file btKinematicCharacterController.cpp.
References btVector3, and parallelComponent().
Referenced by updateTargetPositionBasedOnCollision().
| void playerStep | ( | btCollisionWorld * | collisionWorld, |
| btScalar | dt ) |
References playerStep(), and setStepHeight().
Referenced by playerStep(), and updateAction().
| void preStep | ( | btCollisionWorld * | collisionWorld | ) |
References preStep().
Referenced by preStep(), and updateAction().
| bool btKinematicCharacterController::recoverFromPenetration | ( | btCollisionWorld * | collisionWorld | ) |
Definition at line 177 of file btKinematicCharacterController.cpp.
References btBroadphasePair, btCollisionObject, btPersistentManifold(), btTransform, btVector3, btDispatcher::dispatchAllCollisionPairs(), btCollisionWorld::getBroadphase(), btCollisionWorld::getDispatcher(), btCollisionWorld::getDispatchInfo(), btManifoldPoint::getDistance(), getNumOverlappingPairs(), btPairCachingGhostObject::getOverlappingPairCache(), i, m_convexShape, m_currentPosition, m_ghostObject, m_manifoldArray, m_maxPenetrationDepth, btManifoldPoint::m_normalWorldOnB, needsCollision(), btAlignedObjectArray< T >::resize(), btBroadphaseInterface::setAabb(), and btAlignedObjectArray< T >::size().
Referenced by stepUp().
| void reset | ( | btCollisionWorld * | collisionWorld | ) |
References reset().
| void setAngularDamping | ( | btScalar | d | ) |
Definition at line 157 of file btKinematicCharacterController.h.
References btClamped(), m_angularDamping, and setAngularDamping().
Referenced by setAngularDamping(), and setAngularDamping().
|
virtual |
References btVector3, and setAngularVelocity().
Referenced by setAngularVelocity().
| void btKinematicCharacterController::setFallSpeed | ( | btScalar | fallSpeed | ) |
Definition at line 852 of file btKinematicCharacterController.cpp.
References m_fallSpeed.
| void setGravity | ( | const btVector3 & | gravity | ) |
References btVector3, and setGravity().
Referenced by setGravity(), and setUp().
| void btKinematicCharacterController::setJumpSpeed | ( | btScalar | jumpSpeed | ) |
Definition at line 857 of file btKinematicCharacterController.cpp.
References m_jumpSpeed, and m_SetjumpSpeed.
| void setLinearDamping | ( | btScalar | d | ) |
Definition at line 155 of file btKinematicCharacterController.h.
References btClamped(), m_linearDamping, and setLinearDamping().
Referenced by setLinearDamping(), and setLinearDamping().
|
virtual |
References btVector3, and setLinearVelocity().
Referenced by setLinearVelocity().
| void btKinematicCharacterController::setMaxJumpHeight | ( | btScalar | maxJumpHeight | ) |
Definition at line 863 of file btKinematicCharacterController.cpp.
References m_maxJumpHeight.
| void btKinematicCharacterController::setMaxPenetrationDepth | ( | btScalar | d | ) |
Definition at line 917 of file btKinematicCharacterController.cpp.
References m_maxPenetrationDepth.
Referenced by getGravity().
| void btKinematicCharacterController::setMaxSlope | ( | btScalar | slopeRadians | ) |
The max slope determines the maximum angle that the controller can walk up. The slope angle is measured in radians.
Definition at line 906 of file btKinematicCharacterController.cpp.
References btCos(), m_maxSlopeCosine, and m_maxSlopeRadians.
Referenced by btKinematicCharacterController(), and getGravity().
| void btKinematicCharacterController::setStepHeight | ( | btScalar | h | ) |
Definition at line 932 of file btKinematicCharacterController.cpp.
References m_stepHeight.
Referenced by btKinematicCharacterController(), and playerStep().
| void btKinematicCharacterController::setUp | ( | const btVector3 & | up | ) |
Definition at line 953 of file btKinematicCharacterController.cpp.
References btVector3, m_gravity, setGravity(), and setUpVector().
Referenced by btKinematicCharacterController(), and debugDraw().
| void setUpInterpolate | ( | bool | value | ) |
References setUpInterpolate().
Referenced by setUpInterpolate().
| void btKinematicCharacterController::setUpVector | ( | const btVector3 & | up | ) |
Definition at line 964 of file btKinematicCharacterController.cpp.
References btTransform, btVector3, getRotation(), m_ghostObject, m_up, and rot.
Referenced by needsCollision(), and setUp().
| void setUseGhostSweepTest | ( | bool | useGhostObjectSweepTest | ) |
Definition at line 191 of file btKinematicCharacterController.h.
References m_useGhostObjectSweepTest, and setUseGhostSweepTest().
Referenced by setUseGhostSweepTest().
|
virtual |
Caller provides a velocity with which the character should move for the given time period. After the time period, velocity is reset to zero. This call will reset any walk direction set by setWalkDirection(). Negative time intervals will result in no motion.
References btVector3, and setVelocityForTimeInterval().
Referenced by setVelocityForTimeInterval().
|
virtual |
This should probably be called setPositionIncrementPerSimulatorStep. This is neither a direction nor a velocity, but the amount to increment the position each simulation iteration, regardless of dt. This call will reset any velocity set by setVelocityForTimeInterval().
References btVector3, and setWalkDirection().
Referenced by setWalkDirection().
| void btKinematicCharacterController::stepDown | ( | btCollisionWorld * | collisionWorld, |
| btScalar | dt ) |
Definition at line 466 of file btKinematicCharacterController.cpp.
References bounce_fix, btTransform, btVector3, btCollisionWorld::convexSweepTest(), full_drop, btCollisionWorld::getDispatchInfo(), getGhostObject(), btCollisionWorld::ConvexResultCallback::hasHit(), btDispatcherInfo::m_allowedCcdPenetration, btCollisionWorld::ConvexResultCallback::m_closestHitFraction, btCollisionWorld::ConvexResultCallback::m_collisionFilterGroup, btCollisionWorld::ConvexResultCallback::m_collisionFilterMask, m_convexShape, m_currentOrientation, m_currentPosition, m_currentStepOffset, m_fallSpeed, m_ghostObject, btCollisionWorld::ClosestConvexResultCallback::m_hitCollisionObject, btCollisionWorld::ClosestConvexResultCallback::m_hitPointWorld, m_maxSlopeCosine, m_stepHeight, m_targetOrientation, m_targetPosition, m_up, m_useGhostObjectSweepTest, m_verticalOffset, m_verticalVelocity, m_wasJumping, m_wasOnGround, and needsCollision().
| void btKinematicCharacterController::stepForwardAndStrafe | ( | btCollisionWorld * | collisionWorld, |
| const btVector3 & | walkMove ) |
Definition at line 384 of file btKinematicCharacterController.cpp.
References btTransform, btVector3, btCollisionWorld::convexSweepTest(), distance2(), btCollisionWorld::getDispatchInfo(), getGhostObject(), btCollisionWorld::ConvexResultCallback::hasHit(), length2(), m_addedMargin, btDispatcherInfo::m_allowedCcdPenetration, btCollisionWorld::ConvexResultCallback::m_closestHitFraction, btCollisionWorld::ConvexResultCallback::m_collisionFilterGroup, btCollisionWorld::ConvexResultCallback::m_collisionFilterMask, m_convexShape, m_currentOrientation, m_currentPosition, m_ghostObject, btCollisionWorld::ClosestConvexResultCallback::m_hitCollisionObject, btCollisionWorld::ClosestConvexResultCallback::m_hitNormalWorld, m_normalizedDirection, m_targetOrientation, m_targetPosition, m_useGhostObjectSweepTest, needsCollision(), SIMD_EPSILON, and updateTargetPositionBasedOnCollision().
| void btKinematicCharacterController::stepUp | ( | btCollisionWorld * | collisionWorld | ) |
Definition at line 257 of file btKinematicCharacterController.cpp.
References btTransform, btCollisionWorld::convexSweepTest(), btCollisionWorld::getDispatchInfo(), getGhostObject(), btCollisionWorld::ConvexResultCallback::hasHit(), btDispatcherInfo::m_allowedCcdPenetration, btCollisionWorld::ConvexResultCallback::m_closestHitFraction, btCollisionWorld::ConvexResultCallback::m_collisionFilterGroup, btCollisionWorld::ConvexResultCallback::m_collisionFilterMask, m_convexShape, m_currentOrientation, m_currentPosition, m_currentStepOffset, m_ghostObject, btCollisionWorld::ClosestConvexResultCallback::m_hitCollisionObject, btCollisionWorld::ClosestConvexResultCallback::m_hitNormalWorld, m_interpolateUp, m_jumpAxis, m_maxSlopeCosine, m_stepHeight, m_targetOrientation, m_targetPosition, m_touchingContact, m_up, m_useGhostObjectSweepTest, m_verticalOffset, m_verticalVelocity, needsCollision(), and recoverFromPenetration().
|
virtual |
btActionInterface interface
Definition at line 121 of file btKinematicCharacterController.h.
References playerStep(), preStep(), and updateAction().
Referenced by updateAction().
| void btKinematicCharacterController::updateTargetPositionBasedOnCollision | ( | const btVector3 & | hit_normal, |
| btScalar | tangentMag = btScalar(0.0), | ||
| btScalar | normalMag = btScalar(1.0) ) |
Definition at line 347 of file btKinematicCharacterController.cpp.
References btVector3, computeReflectionDirection(), m_currentPosition, m_targetPosition, parallelComponent(), perpindicularComponent(), and SIMD_EPSILON.
Referenced by stepForwardAndStrafe().
| void warp | ( | const btVector3 & | origin | ) |
References btVector3, and warp().
Referenced by libmv::TemplatedTrackRegion(), and warp().
| btKinematicCharacterController::~btKinematicCharacterController | ( | ) |
Definition at line 168 of file btKinematicCharacterController.cpp.
| btKinematicCharacterController __pad0__ |
btKinematicCharacterController is an object that supports a sliding motion in a world. It uses a ghost object and convex sweep test to test for upcoming collisions. This is combined with discrete collision detection to recover from penetrations. Interaction between btKinematicCharacterController and dynamic rigid bodies needs to be explicity implemented by the user.
Definition at line 36 of file btKinematicCharacterController.h.
| bool bounce_fix |
Definition at line 96 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepDown().
| bool full_drop |
Definition at line 95 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepDown().
| btScalar m_addedMargin |
Definition at line 59 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepForwardAndStrafe().
| btScalar m_angularDamping |
Definition at line 83 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), computeAccelerationsArticulatedBodyAlgorithmMultiDof(), getAngularDamping(), setAngularDamping(), and setAngularDamping().
| btVector3 m_AngVel |
Definition at line 64 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController().
| btConvexShape* m_convexShape |
Definition at line 42 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), recoverFromPenetration(), stepDown(), stepForwardAndStrafe(), and stepUp().
| btQuaternion m_currentOrientation |
Definition at line 73 of file btKinematicCharacterController.h.
Referenced by stepDown(), stepForwardAndStrafe(), and stepUp().
| btVector3 m_currentPosition |
Definition at line 69 of file btKinematicCharacterController.h.
Referenced by recoverFromPenetration(), stepDown(), stepForwardAndStrafe(), stepUp(), and updateTargetPositionBasedOnCollision().
| btScalar m_currentStepOffset |
Definition at line 70 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), stepDown(), and stepUp().
| btScalar m_fallSpeed |
Definition at line 47 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), getFallSpeed(), setFallSpeed(), and stepDown().
| btPairCachingGhostObject* m_ghostObject |
Definition at line 41 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), getGhostObject(), recoverFromPenetration(), setUpVector(), stepDown(), stepForwardAndStrafe(), and stepUp().
| btScalar m_gravity |
Definition at line 53 of file btKinematicCharacterController.h.
Referenced by btDeformableBackwardEulerObjective::applyExplicitForce(), btMultiBodyDynamicsWorld::applyGravity(), btDiscreteDynamicsWorld(), btKinematicCharacterController(), btDeformableMultiBodyDynamicsWorld::clearGravity(), serializeDynamicsWorldInfo(), setUp(), and btMultiBodyDynamicsWorld::solveExternalForces().
| bool m_interpolateUp |
Definition at line 94 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepUp().
| btVector3 m_jumpAxis |
Definition at line 91 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepUp().
| btVector3 m_jumpPosition |
Definition at line 66 of file btKinematicCharacterController.h.
| btScalar m_jumpSpeed |
Definition at line 48 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), getJumpSpeed(), and setJumpSpeed().
| btScalar m_linearDamping |
Definition at line 82 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), computeAccelerationsArticulatedBodyAlgorithmMultiDof(), getLinearDamping(), setLinearDamping(), and setLinearDamping().
| btManifoldArray m_manifoldArray |
keep track of the contact manifolds
Definition at line 77 of file btKinematicCharacterController.h.
Referenced by recoverFromPenetration().
| btScalar m_maxJumpHeight |
Definition at line 50 of file btKinematicCharacterController.h.
Referenced by setMaxJumpHeight().
| btScalar m_maxPenetrationDepth |
Definition at line 44 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), getMaxPenetrationDepth(), recoverFromPenetration(), and setMaxPenetrationDepth().
| btScalar m_maxSlopeCosine |
Definition at line 52 of file btKinematicCharacterController.h.
Referenced by setMaxSlope(), stepDown(), and stepUp().
| btScalar m_maxSlopeRadians |
Definition at line 51 of file btKinematicCharacterController.h.
Referenced by getMaxSlope(), and setMaxSlope().
| btVector3 m_normalizedDirection |
Definition at line 63 of file btKinematicCharacterController.h.
Referenced by stepForwardAndStrafe().
| btScalar m_SetjumpSpeed |
Definition at line 49 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and setJumpSpeed().
| btScalar m_stepHeight |
Definition at line 57 of file btKinematicCharacterController.h.
Referenced by getStepHeight(), setStepHeight(), stepDown(), and stepUp().
| btQuaternion m_targetOrientation |
Definition at line 74 of file btKinematicCharacterController.h.
Referenced by stepDown(), stepForwardAndStrafe(), and stepUp().
| btVector3 m_targetPosition |
Definition at line 71 of file btKinematicCharacterController.h.
Referenced by stepDown(), stepForwardAndStrafe(), stepUp(), and updateTargetPositionBasedOnCollision().
| bool m_touchingContact |
Definition at line 79 of file btKinematicCharacterController.h.
Referenced by stepUp().
| btVector3 m_touchingNormal |
Definition at line 80 of file btKinematicCharacterController.h.
| btScalar m_turnAngle |
Definition at line 55 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController().
| btVector3 m_up |
Definition at line 90 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), getUp(), setUpVector(), stepDown(), and stepUp().
| bool m_useGhostObjectSweepTest |
Definition at line 87 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), setUseGhostSweepTest(), stepDown(), stepForwardAndStrafe(), and stepUp().
| bool m_useWalkDirection |
Definition at line 88 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController().
| btScalar m_velocityTimeInterval |
Definition at line 89 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController().
| btScalar m_verticalOffset |
Definition at line 46 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), stepDown(), and stepUp().
| btScalar m_verticalVelocity |
Definition at line 45 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), stepDown(), and stepUp().
| btVector3 m_walkDirection |
this is the desired walk direction, set by the user
Definition at line 62 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController().
| bool m_wasJumping |
Definition at line 86 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepDown().
| bool m_wasOnGround |
Definition at line 85 of file btKinematicCharacterController.h.
Referenced by btKinematicCharacterController(), and stepDown().