BulletBodyNode

from panda3d.bullet import BulletBodyNode
class BulletBodyNode

Bases: PandaNode

Inheritance diagram

Inheritance diagram of BulletBodyNode

property activebool

Deactivation

Getter

Deactivation

Deactivation

Setter

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

Shapes

addShapesFromCollisionSolids(cnode: panda3d.core.CollisionNode)
property anisotropic_frictionLVecBase3
property ccd_motion_thresholdfloat
property ccd_swept_sphere_radiusfloat

CCD

Getter

CCD

CCD

Setter

checkCollisionWith(node: panda3d.core.PandaNode)bool
property collision_notificationbool
property collision_responsebool
property contact_processing_thresholdfloat

Getter Setter

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

property contact_responsebool
property deactivation_enabledbool

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_timefloat
property debug_enabledbool
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 frictionfloat
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 kinematicbool
notifiesCollisions()bool
notifyCollisions(value: bool)
removeShape(shape: BulletShape)
property restitutionfloat

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_boundsBoundingSphere

Returns the current bounds of all collision shapes owned by this body.

property shape_matSequence[LMatrix4]
property shape_posSequence[LPoint3]
property shape_transformSequence[ConstPointerTo_TransformState]
property shapesSequence[BulletShape]
property staticbool

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter