BulletRigidBodyNode
from panda3d.bullet import BulletRigidBodyNode
- class BulletRigidBodyNode
Bases:
Bases:
BulletBodyNode
Inheritance diagram
- apply_central_force(force: panda3d.core.LVector3)
- apply_central_impulse(impulse: panda3d.core.LVector3)
- apply_force(force: panda3d.core.LVector3, pos: panda3d.core.LPoint3)
- apply_impulse(impulse: panda3d.core.LVector3, pos: panda3d.core.LPoint3)
- apply_torque(torque: panda3d.core.LVector3)
- apply_torque_impulse(torque: panda3d.core.LVector3)
- clear_forces()
Forces
- get_angular_factor() panda3d.core.LVector3
- get_angular_velocity() panda3d.core.LVector3
- static get_class_type() panda3d.core.TypeHandle
- get_gravity() panda3d.core.LVector3
- get_inertia() panda3d.core.LVector3
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.
- get_inv_inertia_diag_local() panda3d.core.LVector3
- get_inv_inertia_tensor_world() panda3d.core.LMatrix3
- get_linear_factor() panda3d.core.LVector3
Restrict movement
- get_linear_velocity() panda3d.core.LVector3
Velocity
- get_mass() float
Returns the total mass of a rigid body. A value of zero means that the body is staic, i.e. has an infinite mass.
- get_total_force() panda3d.core.LVector3
- get_total_torque() panda3d.core.LVector3
- property inertia LVector3
- Getter
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.
- Setter
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.
- property linear_factor LVector3
Restrict movement
- Getter
Restrict movement
Restrict movement
Setter
- property linear_sleep_threshold float
Deactivation thresholds
- Getter
Deactivation thresholds
Deactivation thresholds
Setter
- property mass float
- Getter
Returns the total mass of a rigid body. A value of zero means that the body is staic, i.e. has an infinite mass.
- Setter
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.
- pick_dirty_flag() bool
Returns TRUE if the transform of the rigid body has changed at least once since the last call to this method.
- set_angular_factor(factor: panda3d.core.LVector3)
- set_angular_velocity(velocity: panda3d.core.LVector3)
- set_gravity(gravity: panda3d.core.LVector3)
Gravity
- set_inertia(inertia: panda3d.core.LVecBase3)
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.
- set_linear_factor(factor: panda3d.core.LVector3)
- set_linear_velocity(velocity: panda3d.core.LVector3)