BulletRigidBodyNode¶
-
class
BulletRigidBodyNode
¶ Bases:
BulletBodyNode
Inheritance diagram
-
explicit
BulletRigidBodyNode
(char const *name = "rigid")¶ Do not call the copy constructor directly; instead, use make_copy() or copy_subgraph() to make a copy of a node.
-
void
clear_forces
(void)¶ Forces
-
PN_stdfloat
get_angular_damping
(void) const¶
-
PN_stdfloat
get_angular_sleep_threshold
(void) const¶
-
static TypeHandle
get_class_type
(void)¶
-
LVector3
get_inertia
(void) const¶ Returns the inertia of the rigid body. Inertia is given as a three component vector. A component value of zero means infinite inertia along this direction.
-
PN_stdfloat
get_inv_mass
(void) const¶ Returns the inverse mass of a rigid body.
-
PN_stdfloat
get_linear_damping
(void) const¶ Damping
Damping
-
PN_stdfloat
get_linear_sleep_threshold
(void) const¶ Deactivation thresholds
Deactivation thresholds
-
PN_stdfloat
get_mass
(void) const¶ Returns the total mass of a rigid body. A value of zero means that the body is staic, i.e. has an infinite mass.
-
bool
pick_dirty_flag
(void)¶ Special
Returns TRUE if the transform of the rigid body has changed at least once since the last call to this method.
-
void
set_angular_damping
(PN_stdfloat value)¶
-
void
set_angular_sleep_threshold
(PN_stdfloat threshold)¶
-
void
set_inertia
(LVecBase3 const &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.
-
void
set_linear_damping
(PN_stdfloat value)¶
-
void
set_linear_sleep_threshold
(PN_stdfloat threshold)¶
-
void
set_mass
(PN_stdfloat mass)¶ Mass & inertia
Mass & inertia
Sets the mass of a rigid body. This also modifies the inertia, which is automatically computed from the shape of the body. Setting a value of zero for mass will make the body static. A value of zero can be considered an infinite mass.
-
explicit