BulletRigidBodyNode¶
from panda3d.bullet import BulletRigidBodyNode
-
class
BulletRigidBodyNode
¶ Bases:
BulletBodyNode
Inheritance diagram
-
property
angular_factor
→ LVector3¶ Getter Setter
-
property
angular_velocity
→ LVector3¶ Getter Setter
-
applyCentralForce
(force: panda3d.core.LVector3) → None¶
-
applyCentralImpulse
(impulse: panda3d.core.LVector3) → None¶
-
applyForce
(force: panda3d.core.LVector3, pos: panda3d.core.LPoint3) → None¶
-
applyImpulse
(impulse: panda3d.core.LVector3, pos: panda3d.core.LPoint3) → None¶
-
applyTorque
(torque: panda3d.core.LVector3) → None¶
-
applyTorqueImpulse
(torque: panda3d.core.LVector3) → None¶
-
getAngularFactor
() → panda3d.core.LVector3¶
-
getAngularVelocity
() → panda3d.core.LVector3¶
-
static
getClassType
() → panda3d.core.TypeHandle¶
-
getGravity
() → panda3d.core.LVector3¶
-
getInertia
() → 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.
-
getInvInertiaDiagLocal
() → panda3d.core.LVector3¶
-
getInvInertiaTensorWorld
() → panda3d.core.LMatrix3¶
-
getLinearFactor
() → panda3d.core.LVector3¶ Restrict movement
-
getLinearVelocity
() → panda3d.core.LVector3¶ Velocity
-
getMass
() → 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.
-
getTotalForce
() → panda3d.core.LVector3¶
-
getTotalTorque
() → panda3d.core.LVector3¶
-
property
gravity
→ LVector3¶ Getter Setter
Gravity
Gravity
-
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
inv_inertia_diag_local
→ LVector3¶
-
property
inv_inertia_tensor_world
→ LMatrix3¶
-
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
linear_velocity
→ LVector3¶ Velocity
- Getter
Velocity
Velocity
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.
-
pickDirtyFlag
() → bool¶ Returns TRUE if the transform of the rigid body has changed at least once since the last call to this method.
-
setAngularFactor
(factor: panda3d.core.LVector3) → None¶
-
setAngularVelocity
(velocity: panda3d.core.LVector3) → None¶
-
setGravity
(gravity: panda3d.core.LVector3) → None¶ Gravity
-
setInertia
(inertia: panda3d.core.LVecBase3) → None¶ 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.
-
setLinearFactor
(factor: panda3d.core.LVector3) → None¶
-
setLinearVelocity
(velocity: panda3d.core.LVector3) → None¶
-
setMass
(mass: float) → None¶ 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.
-
property
total_force
→ LVector3¶
-
property
total_torque
→ LVector3¶
-
property