BulletBodyNode
from panda3d.bullet import BulletBodyNode
- class BulletBodyNode
Bases:
Bases:
PandaNode
Inheritance diagram
- addShape(shape: BulletShape, xform: panda3d.core.TransformState)
Shapes
- addShapesFromCollisionSolids(cnode: panda3d.core.CollisionNode)
- checkCollisionWith(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.
- getAnisotropicFriction() panda3d.core.LVecBase3
- static getClassType() panda3d.core.TypeHandle
- getShape(idx: int) BulletShape
- getShapeBounds() panda3d.core.BoundingSphere
Returns the current bounds of all collision shapes owned by this body.
- getShapeMat(idx: int) panda3d.core.LMatrix4
- getShapePos(idx: int) panda3d.core.LPoint3
- getShapeTransform(idx: int) panda3d.core.TransformState
- isDebugEnabled() bool
Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.
- removeShape(shape: BulletShape)
- property restitution float
Friction and Restitution
- Getter
Friction and Restitution
Friction and Restitution
Setter
- setAnisotropicFriction(friction: panda3d.core.LVecBase3)
- setContactProcessingThreshold(threshold: float)
The constraint solver can discard solving contacts, if the distance is above this threshold.
- setDeactivationEnabled(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.
- setDebugEnabled(enabled: bool)
Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.
- setIntoCollideMask(mask: panda3d.core.CollideMask)
Contacts
- setTransformDirty()
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
PandaNode
hook ‘transform_changed’.
- property shape_bounds BoundingSphere
Returns the current bounds of all collision shapes owned by this body.
- property shapes Sequence[BulletShape]