Classes |
| class | MotionState |
Public Member Functions |
|
| BulletRigidBodyNode (const char *name="rigid") |
|
void | apply_central_force (const LVector3 &force) |
|
void | apply_central_impulse (const LVector3 &impulse) |
|
void | apply_force (const LVector3 &force, const LPoint3 &pos) |
|
void | apply_impulse (const LVector3 &impulse, const LPoint3 &pos) |
|
void | apply_torque (const LVector3 &torque) |
|
void | apply_torque_impulse (const LVector3 &torque) |
|
void | clear_forces () |
|
virtual TypeHandle | force_init_type () |
|
PN_stdfloat | get_angular_damping () const |
|
PN_stdfloat | get_angular_sleep_threshold () const |
|
LVector3 | get_angular_velocity () const |
|
LVector3 | get_gravity () const |
| LVector3 | get_inertia () const |
| | Returns the inertia of the rigid body.
|
|
PN_stdfloat | get_linear_damping () const |
|
PN_stdfloat | get_linear_sleep_threshold () const |
|
LVector3 | get_linear_velocity () const |
| PN_stdfloat | get_mass () const |
| | Returns the total mass of a rigid body.
|
|
virtual btCollisionObject * | get_object () const |
|
virtual TypeHandle | get_type () const |
| virtual void | output (ostream &out) const |
| | Outputs the Namable.
|
|
void | set_angular_damping (PN_stdfloat value) |
|
void | set_angular_factor (const LVector3 &factor) |
|
void | set_angular_sleep_threshold (PN_stdfloat threshold) |
|
void | set_angular_velocity (const LVector3 &velocity) |
|
void | set_gravity (const LVector3 &gravity) |
| void | set_inertia (const LVecBase3 &inertia) |
| | Sets the inertia of a rigid body.
|
|
void | set_linear_damping (PN_stdfloat value) |
|
void | set_linear_factor (const LVector3 &factor) |
|
void | set_linear_sleep_threshold (PN_stdfloat threshold) |
|
void | set_linear_velocity (const LVector3 &velocity) |
| void | set_mass (PN_stdfloat mass) |
| | Sets the mass of a rigid body.
|
|
void | sync_b2p () |
|
void | sync_p2b () |
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Protected Member Functions |
| virtual void | transform_changed () |
| | Called after the node's transform has been changed for any reason, this just provides a hook so derived classes can do something special in this case.
|
Definition at line 33 of file bulletRigidBodyNode.h.
| void BulletRigidBodyNode::set_inertia |
( |
const LVecBase3 & |
inertia | ) |
|
Sets the inertia of a rigid body.
Inertia is given as a three-component vector. A component value of zero means infinite inertia along this direction. Setting the intertia will override the value which is automatically calculated from the rigid bodies shape. However, it is possible that automatic calculation of intertia is trigger after calling this method, and thus overwriting the explicitly set value again. This happens when: (a) the mass is set after the inertia. (b) a shape is added or removed from the body. (c) the scale of the body changed.
Definition at line 148 of file bulletRigidBodyNode.cxx.