BulletBodyNode
from panda3d.bullet import BulletBodyNode
- class BulletBodyNode
Bases:
Bases:
PandaNodeInheritance diagram
- add_shape(shape: BulletShape, xform: panda3d.core.TransformState)
Shapes
- add_shapes_from_collision_solids(cnode: panda3d.core.CollisionNode)
Add shapes from the specified collision node to this body.
- add_shapes_from_collision_solids(cnode: panda3d.core.CollisionNode, relative_transform: panda3d.core.TransformState)
Add shapes from the specified collision node to this body. Also apply the given transform state to all solids. This is useful for example when the collision node is rotated, is not centered to origin, or has several parent transforms applied on it.
- check_collision_with(node: panda3d.core.PandaNode) bool
- property contact_processing_threshold float
Getter Setter
The constraint solver can discard solving contacts, if the distance is above this threshold.
- property deactivation_enabled bool
Getter Setter
If true, this object will be deactivated after a certain amount of time has passed without movement. If false, the object will always remain active.
- property debug_enabled bool
- Getter
Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.
- Setter
Debug Visualisation
Debug Visualisation
Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.
- get_anisotropic_friction() panda3d.core.LVecBase3
- static get_class_type() panda3d.core.TypeHandle
- get_shape(idx: int) BulletShape
- get_shape_bounds() panda3d.core.BoundingSphere
Returns the current bounds of all collision shapes owned by this body.
- get_shape_mat(idx: int) panda3d.core.LMatrix4
- get_shape_pos(idx: int) panda3d.core.LPoint3
- get_shape_transform(idx: int) panda3d.core.TransformState
- is_debug_enabled() bool
Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.
- remove_shape(shape: BulletShape)
- property restitution float
Friction and Restitution
- Getter
Friction and Restitution
Friction and Restitution
Setter
- set_anisotropic_friction(friction: panda3d.core.LVecBase3)
- set_contact_processing_threshold(threshold: float)
The constraint solver can discard solving contacts, if the distance is above this threshold.
- set_deactivation_enabled(enabled: bool)
If true, this object will be deactivated after a certain amount of time has passed without movement. If false, the object will always remain active.
- set_debug_enabled(enabled: bool)
Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.
- set_into_collide_mask(mask: panda3d.core.CollideMask)
Contacts
- set_transform_dirty()
This method enforces an update of the Bullet transform, that is copies the scene graph transform to the Bullet transform. This is achieved by alling the protected
PandaNodehook ‘transform_changed’.
- property shape_bounds BoundingSphere
Returns the current bounds of all collision shapes owned by this body.
- property shapes Sequence[BulletShape]
