The btRigidBody is the main class for rigid body objects. More...
#include <btRigidBody.h>


The btRigidBody is the main class for rigid body objects.
It is derived from btCollisionObject, so it keeps a pointer to a btCollisionShape. It is recommended for performance and memory use to share btCollisionShape objects whenever possible. There are 3 types of rigid bodies:
Definition at line 55 of file btRigidBody.h.
| btRigidBody::btRigidBody | ( | const btRigidBodyConstructionInfo & | constructionInfo | ) |
btRigidBody constructor using construction info
Definition at line 29 of file btRigidBody.cpp.
| btRigidBody::btRigidBody | ( | btScalar | mass, | |
| btMotionState * | motionState, | |||
| btCollisionShape * | collisionShape, | |||
| const btVector3 & | localInertia = btVector3(0,0,0) | |||
| ) |
btRigidBody constructor for backwards compatibility.
To specify friction (etc) during rigid body construction, please use the other constructor (using btRigidBodyConstructionInfo)
Definition at line 34 of file btRigidBody.cpp.
| virtual btRigidBody::~btRigidBody | ( | ) | [inline, virtual] |
Definition at line 171 of file btRigidBody.h.
| void btRigidBody::addConstraintRef | ( | btTypedConstraint * | c | ) |
Definition at line 338 of file btRigidBody.cpp.
| void btRigidBody::applyCentralForce | ( | const btVector3 & | force | ) | [inline] |
Definition at line 268 of file btRigidBody.h.
| void btRigidBody::applyCentralImpulse | ( | const btVector3 & | impulse | ) | [inline] |
Definition at line 310 of file btRigidBody.h.
| void btRigidBody::applyDamping | ( | btScalar | timeStep | ) |
applyDamping damps the velocity, using the given m_linearDamping and m_angularDamping
Definition at line 158 of file btRigidBody.cpp.
Definition at line 304 of file btRigidBody.h.
| void btRigidBody::applyGravity | ( | ) |
Definition at line 215 of file btRigidBody.cpp.
Definition at line 320 of file btRigidBody.h.
| void btRigidBody::applyTorque | ( | const btVector3 & | torque | ) | [inline] |
Definition at line 299 of file btRigidBody.h.
| void btRigidBody::applyTorqueImpulse | ( | const btVector3 & | torque | ) | [inline] |
Definition at line 315 of file btRigidBody.h.
| btRigidBody::ATTRIBUTE_ALIGNED64 | ( | btVector3 | m_deltaLinearVelocity | ) | [protected] |
| int btRigidBody::calculateSerializeBufferSize | ( | ) | const [virtual] |
Reimplemented from btCollisionObject.
Definition at line 353 of file btRigidBody.cpp.
| bool btRigidBody::checkCollideWithOverride | ( | btCollisionObject * | co | ) | [virtual] |
Definition at line 300 of file btRigidBody.cpp.
| void btRigidBody::clearForces | ( | ) | [inline] |
Definition at line 332 of file btRigidBody.h.
| SIMD_FORCE_INLINE btScalar btRigidBody::computeAngularImpulseDenominator | ( | const btVector3 & | axis | ) | const [inline] |
Definition at line 399 of file btRigidBody.h.
| SIMD_FORCE_INLINE btScalar btRigidBody::computeImpulseDenominator | ( | const btVector3 & | pos, | |
| const btVector3 & | normal | |||
| ) | const [inline] |
Definition at line 387 of file btRigidBody.h.
Definition at line 126 of file btRigidBody.cpp.
| btScalar btRigidBody::getAngularDamping | ( | ) | const [inline] |
Definition at line 223 of file btRigidBody.h.
| const btVector3& btRigidBody::getAngularFactor | ( | ) | const [inline] |
Definition at line 486 of file btRigidBody.h.
| btScalar btRigidBody::getAngularSleepingThreshold | ( | ) | const [inline] |
Definition at line 233 of file btRigidBody.h.
| const btVector3& btRigidBody::getAngularVelocity | ( | ) | const [inline] |
Definition at line 351 of file btRigidBody.h.
| btBroadphaseProxy* btRigidBody::getBroadphaseProxy | ( | ) | [inline] |
Definition at line 448 of file btRigidBody.h.
| const btBroadphaseProxy* btRigidBody::getBroadphaseProxy | ( | ) | const [inline] |
Definition at line 444 of file btRigidBody.h.
| const btVector3& btRigidBody::getCenterOfMassPosition | ( | ) | const [inline] |
Definition at line 340 of file btRigidBody.h.
| const btTransform& btRigidBody::getCenterOfMassTransform | ( | ) | const [inline] |
Definition at line 345 of file btRigidBody.h.
| SIMD_FORCE_INLINE btCollisionShape* btRigidBody::getCollisionShape | ( | ) | [inline] |
Reimplemented from btCollisionObject.
Definition at line 244 of file btRigidBody.h.
| SIMD_FORCE_INLINE const btCollisionShape* btRigidBody::getCollisionShape | ( | ) | const [inline] |
Reimplemented from btCollisionObject.
Definition at line 240 of file btRigidBody.h.
| btTypedConstraint* btRigidBody::getConstraintRef | ( | int | index | ) | [inline] |
Definition at line 502 of file btRigidBody.h.
| int btRigidBody::getFlags | ( | ) | const [inline] |
Definition at line 517 of file btRigidBody.h.
| const btVector3& btRigidBody::getGravity | ( | ) | const [inline] |
Definition at line 211 of file btRigidBody.h.
| const btVector3& btRigidBody::getInvInertiaDiagLocal | ( | ) | const [inline] |
Definition at line 283 of file btRigidBody.h.
| const btMatrix3x3& btRigidBody::getInvInertiaTensorWorld | ( | ) | const [inline] |
Definition at line 260 of file btRigidBody.h.
| btScalar btRigidBody::getInvMass | ( | ) | const [inline] |
Definition at line 259 of file btRigidBody.h.
| btScalar btRigidBody::getLinearDamping | ( | ) | const [inline] |
Definition at line 218 of file btRigidBody.h.
| const btVector3& btRigidBody::getLinearFactor | ( | ) | const [inline] |
Definition at line 250 of file btRigidBody.h.
| btScalar btRigidBody::getLinearSleepingThreshold | ( | ) | const [inline] |
Definition at line 228 of file btRigidBody.h.
| const btVector3& btRigidBody::getLinearVelocity | ( | ) | const [inline] |
Definition at line 348 of file btRigidBody.h.
| const btMotionState* btRigidBody::getMotionState | ( | ) | const [inline] |
Definition at line 462 of file btRigidBody.h.
| btMotionState* btRigidBody::getMotionState | ( | ) | [inline] |
Definition at line 458 of file btRigidBody.h.
| int btRigidBody::getNumConstraintRefs | ( | ) | [inline] |
Definition at line 507 of file btRigidBody.h.
| btQuaternion btRigidBody::getOrientation | ( | ) | const |
Definition at line 275 of file btRigidBody.cpp.
| const btVector3& btRigidBody::getTotalForce | ( | ) | [inline] |
Definition at line 273 of file btRigidBody.h.
| const btVector3& btRigidBody::getTotalTorque | ( | ) | [inline] |
Definition at line 278 of file btRigidBody.h.
Definition at line 366 of file btRigidBody.h.
| void btRigidBody::integrateVelocities | ( | btScalar | step | ) |
clamp angular velocity. collision calculations will fail on higher angular velocities
Definition at line 257 of file btRigidBody.cpp.
| SIMD_FORCE_INLINE void btRigidBody::internalApplyImpulse | ( | const btVector3 & | linearComponent, | |
| const btVector3 & | angularComponent, | |||
| const btScalar | impulseMagnitude | |||
| ) | [inline] |
Definition at line 568 of file btRigidBody.h.
| SIMD_FORCE_INLINE void btRigidBody::internalApplyPushImpulse | ( | const btVector3 & | linearComponent, | |
| const btVector3 & | angularComponent, | |||
| btScalar | impulseMagnitude | |||
| ) | [inline] |
Definition at line 577 of file btRigidBody.h.
| const btVector3& btRigidBody::internalGetAngularFactor | ( | ) | const [inline] |
Definition at line 536 of file btRigidBody.h.
| SIMD_FORCE_INLINE void btRigidBody::internalGetAngularVelocity | ( | btVector3 & | angVel | ) | const [inline] |
Definition at line 561 of file btRigidBody.h.
| btVector3& btRigidBody::internalGetDeltaAngularVelocity | ( | ) | [inline] |
Definition at line 531 of file btRigidBody.h.
| btVector3& btRigidBody::internalGetDeltaLinearVelocity | ( | ) | [inline] |
some internal methods, don't use them
Definition at line 526 of file btRigidBody.h.
| const btVector3& btRigidBody::internalGetInvMass | ( | ) | const [inline] |
Definition at line 541 of file btRigidBody.h.
| btVector3& btRigidBody::internalGetPushVelocity | ( | ) | [inline] |
Definition at line 546 of file btRigidBody.h.
| btVector3& btRigidBody::internalGetTurnVelocity | ( | ) | [inline] |
Definition at line 551 of file btRigidBody.h.
| SIMD_FORCE_INLINE void btRigidBody::internalGetVelocityInLocalPointObsolete | ( | const btVector3 & | rel_pos, | |
| btVector3 & | velocity | |||
| ) | const [inline] |
Definition at line 556 of file btRigidBody.h.
| void btRigidBody::internalWritebackVelocity | ( | btScalar | timeStep | ) |
Definition at line 316 of file btRigidBody.cpp.
| void btRigidBody::internalWritebackVelocity | ( | ) | [inline] |
Definition at line 586 of file btRigidBody.h.
| bool btRigidBody::isInWorld | ( | ) | const [inline] |
Definition at line 492 of file btRigidBody.h.
| void btRigidBody::predictIntegratedTransform | ( | btScalar | step, | |
| btTransform & | predictedTransform | |||
| ) |
continuous collision detection needs prediction
Definition at line 103 of file btRigidBody.cpp.
| void btRigidBody::proceedToTransform | ( | const btTransform & | newTrans | ) |
Definition at line 224 of file btRigidBody.cpp.
| void btRigidBody::removeConstraintRef | ( | btTypedConstraint * | c | ) |
Definition at line 347 of file btRigidBody.cpp.
| void btRigidBody::saveKinematicState | ( | btScalar | step | ) |
Definition at line 108 of file btRigidBody.cpp.
| const char * btRigidBody::serialize | ( | void * | dataBuffer, | |
| class btSerializer * | serializer | |||
| ) | const [virtual] |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btCollisionObject.
Definition at line 360 of file btRigidBody.cpp.
| void btRigidBody::setAngularFactor | ( | btScalar | angFac | ) | [inline] |
Definition at line 482 of file btRigidBody.h.
| void btRigidBody::setAngularFactor | ( | const btVector3 & | angFac | ) | [inline] |
Definition at line 477 of file btRigidBody.h.
| void btRigidBody::setAngularVelocity | ( | const btVector3 & | ang_vel | ) | [inline] |
Definition at line 361 of file btRigidBody.h.
| void btRigidBody::setCenterOfMassTransform | ( | const btTransform & | xform | ) |
Definition at line 283 of file btRigidBody.cpp.
Definition at line 148 of file btRigidBody.cpp.
| void btRigidBody::setFlags | ( | int | flags | ) | [inline] |
Definition at line 512 of file btRigidBody.h.
| void btRigidBody::setGravity | ( | const btVector3 & | acceleration | ) |
Definition at line 134 of file btRigidBody.cpp.
| void btRigidBody::setInvInertiaDiagLocal | ( | const btVector3 & | diagInvInertia | ) | [inline] |
Definition at line 288 of file btRigidBody.h.
| void btRigidBody::setLinearFactor | ( | const btVector3 & | linearFactor | ) | [inline] |
Definition at line 254 of file btRigidBody.h.
| void btRigidBody::setLinearVelocity | ( | const btVector3 & | lin_vel | ) | [inline] |
Definition at line 356 of file btRigidBody.h.
Definition at line 230 of file btRigidBody.cpp.
| void btRigidBody::setMotionState | ( | btMotionState * | motionState | ) | [inline] |
Definition at line 466 of file btRigidBody.h.
| void btRigidBody::setNewBroadphaseProxy | ( | btBroadphaseProxy * | broadphaseProxy | ) | [inline] |
Definition at line 452 of file btRigidBody.h.
Definition at line 293 of file btRigidBody.h.
| void btRigidBody::setupRigidBody | ( | const btRigidBodyConstructionInfo & | constructionInfo | ) | [protected] |
setupRigidBody is only used internally by the constructor
Definition at line 40 of file btRigidBody.cpp.
| void btRigidBody::translate | ( | const btVector3 & | v | ) | [inline] |
Definition at line 375 of file btRigidBody.h.
| static btRigidBody* btRigidBody::upcast | ( | btCollisionObject * | colObj | ) | [inline, static] |
Definition at line 195 of file btRigidBody.h.
| static const btRigidBody* btRigidBody::upcast | ( | const btCollisionObject * | colObj | ) | [inline, static] |
to keep collision detection and dynamics separate we don't store a rigidbody pointer but a rigidbody is derived from btCollisionObject, so we can safely perform an upcast
Definition at line 189 of file btRigidBody.h.
| SIMD_FORCE_INLINE void btRigidBody::updateDeactivation | ( | btScalar | timeStep | ) | [inline] |
Definition at line 405 of file btRigidBody.h.
| void btRigidBody::updateInertiaTensor | ( | ) |
Definition at line 251 of file btRigidBody.cpp.
| SIMD_FORCE_INLINE bool btRigidBody::wantsSleeping | ( | ) | [inline] |
Definition at line 422 of file btRigidBody.h.
Definition at line 77 of file btRigidBody.h.
Definition at line 76 of file btRigidBody.h.
bool btRigidBody::m_additionalDamping [private] |
Definition at line 73 of file btRigidBody.h.
Definition at line 74 of file btRigidBody.h.
Definition at line 75 of file btRigidBody.h.
btScalar btRigidBody::m_angularDamping [private] |
Definition at line 71 of file btRigidBody.h.
btVector3 btRigidBody::m_angularFactor [protected] |
Definition at line 98 of file btRigidBody.h.
Definition at line 81 of file btRigidBody.h.
btVector3 btRigidBody::m_angularVelocity [private] |
Definition at line 60 of file btRigidBody.h.
Definition at line 87 of file btRigidBody.h.
Definition at line 474 of file btRigidBody.h.
int btRigidBody::m_debugBodyId [private] |
Definition at line 91 of file btRigidBody.h.
btVector3 btRigidBody::m_deltaAngularVelocity [protected] |
Definition at line 97 of file btRigidBody.h.
Definition at line 475 of file btRigidBody.h.
btVector3 btRigidBody::m_gravity [private] |
Definition at line 64 of file btRigidBody.h.
btVector3 btRigidBody::m_gravity_acceleration [private] |
Definition at line 65 of file btRigidBody.h.
btScalar btRigidBody::m_inverseMass [private] |
Definition at line 61 of file btRigidBody.h.
btVector3 btRigidBody::m_invInertiaLocal [private] |
Definition at line 66 of file btRigidBody.h.
Definition at line 58 of file btRigidBody.h.
btVector3 btRigidBody::m_invMass [protected] |
Definition at line 99 of file btRigidBody.h.
btScalar btRigidBody::m_linearDamping [private] |
Definition at line 70 of file btRigidBody.h.
btVector3 btRigidBody::m_linearFactor [private] |
Definition at line 62 of file btRigidBody.h.
Definition at line 80 of file btRigidBody.h.
btVector3 btRigidBody::m_linearVelocity [private] |
Definition at line 59 of file btRigidBody.h.
btMotionState* btRigidBody::m_optionalMotionState [private] |
Definition at line 84 of file btRigidBody.h.
btVector3 btRigidBody::m_pushVelocity [protected] |
Definition at line 100 of file btRigidBody.h.
int btRigidBody::m_rigidbodyFlags [private] |
Definition at line 89 of file btRigidBody.h.
btVector3 btRigidBody::m_totalForce [private] |
Definition at line 67 of file btRigidBody.h.
btVector3 btRigidBody::m_totalTorque [private] |
Definition at line 68 of file btRigidBody.h.
btVector3 btRigidBody::m_turnVelocity [protected] |
Definition at line 101 of file btRigidBody.h.
1.6.1