BulletBodyNode

from panda3d.bullet import BulletBodyNode
class BulletBodyNode

Bases:

Bases: PandaNode

Inheritance diagram

Inheritance diagram of BulletBodyNode

property active bool

Deactivation

Getter

Deactivation

Deactivation

Setter

addShape(shape: BulletShape, xform: panda3d.core.TransformState)

Shapes

addShapesFromCollisionSolids(cnode: panda3d.core.CollisionNode)
property anisotropic_friction LVecBase3
property ccd_motion_threshold float
property ccd_swept_sphere_radius float

CCD

Getter

CCD

CCD

Setter

checkCollisionWith(node: panda3d.core.PandaNode) bool
property collision_notification bool
property collision_response bool
property contact_processing_threshold float

Getter Setter

The constraint solver can discard solving contacts, if the distance is above this threshold.

property contact_response bool
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 deactivation_time float
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.

forceActive(active: bool)
property friction float
getAnisotropicFriction() panda3d.core.LVecBase3
getCcdMotionThreshold() float
getCcdSweptSphereRadius() float
static getClassType() panda3d.core.TypeHandle
getCollisionResponse() bool
getContactProcessingThreshold() float
getDeactivationTime() float
getFriction() float
getNumShapes() int
getRestitution() float

Friction and Restitution

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
getShapes() list
hasAnisotropicFriction() bool
hasContactResponse() bool
isActive() bool

Deactivation

isDeactivationEnabled() bool
isDebugEnabled() bool

Returns TRUE if the debug visualisation is enabled for this collision object, and FALSE if the debug visualisation is disabled.

isKinematic() bool
isStatic() bool

Static and kinematic

property kinematic bool
notifiesCollisions() bool
notifyCollisions(value: bool)
removeShape(shape: BulletShape)
property restitution float

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

setActive(active: bool, force: bool)
setAnisotropicFriction(friction: panda3d.core.LVecBase3)
setCcdMotionThreshold(threshold: float)
setCcdSweptSphereRadius(radius: float)
setCollisionResponse(value: bool)
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.

setDeactivationTime(dt: float)
setDebugEnabled(enabled: bool)

Enables or disables the debug visualisation for this collision object. By default the debug visualisation is enabled.

setFriction(friction: float)
setIntoCollideMask(mask: panda3d.core.CollideMask)

Contacts

setKinematic(value: bool)
setRestitution(restitution: float)
setStatic(value: bool)
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 shape_mat Sequence[LMatrix4]
property shape_pos Sequence[LPoint3]
property shape_transform Sequence[ConstPointerTo_TransformState]
property shapes Sequence[BulletShape]
property static bool

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter