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)None

Shapes

addShapesFromCollisionSolids(cnode: panda3d.core.CollisionNode)None
property anisotropic_friction → LVecBase3

Getter Setter

property ccd_motion_thresholdfloat

Getter Setter

property ccd_swept_sphere_radiusfloat

CCD

Getter

CCD

CCD

Setter

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

Getter Setter

property collision_responsebool

Getter Setter

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

Getter Setter

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)None
property frictionfloat

Getter Setter

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

Getter Setter

notifiesCollisions()bool
notifyCollisions(value: bool)None
removeShape(shape: BulletShape)None
property restitutionfloat

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

setActive(active: bool, force: bool)None
setAnisotropicFriction(friction: panda3d.core.LVecBase3)None
setCcdMotionThreshold(threshold: float)None
setCcdSweptSphereRadius(radius: float)None
setCollisionResponse(value: bool)None
setContactProcessingThreshold(threshold: float)None

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

setDeactivationEnabled(enabled: bool)None

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)None
setDebugEnabled(enabled: bool)None

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

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

Contacts

setKinematic(value: bool)None
setRestitution(restitution: float)None
setStatic(value: bool)None
setTransformDirty()None

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 staticbool

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter