panda3d.bullet.BulletBodyNode

class BulletBodyNode

Bases: PandaNode

Inheritance diagram

Inheritance diagram of BulletBodyNode

addShape(shape: BulletShape, xform: TransformState) → None

Shapes

removeShape(shape: BulletShape) → None
getNumShapes() → int
getShape(idx: int) → BulletShape
Return type

BulletShape

getShapePos(idx: int) → LPoint3
Return type

LPoint3

getShapeMat(idx: int) → LMatrix4
Return type

LMatrix4

getShapeTransform(idx: int) → TransformState
Return type

TransformState

getShapeBounds() → BoundingSphere

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

Return type

BoundingSphere

addShapesFromCollisionSolids(cnode: CollisionNode) → None
isStatic() → bool

Static and kinematic

isKinematic() → bool
setStatic(value: bool) → None
setKinematic(value: bool) → None
setIntoCollideMask(mask: CollideMask) → None

Contacts

notifyCollisions(value: bool) → None
notifiesCollisions() → bool
setCollisionResponse(value: bool) → None
getCollisionResponse() → bool
checkCollisionWith(node: PandaNode) → bool
hasContactResponse() → bool
getContactProcessingThreshold() → float
setContactProcessingThreshold(threshold: float) → None

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

isActive() → bool

Deactivation

setActive(active: bool, force: bool) → None
forceActive(active: bool) → None
setDeactivationTime(dt: float) → None
getDeactivationTime() → float
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.

isDeactivationEnabled() → bool
setDebugEnabled(enabled: bool) → None

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

isDebugEnabled() → bool

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

getRestitution() → float

Friction and Restitution

setRestitution(restitution: float) → None
getFriction() → float
setFriction(friction: float) → None
hasAnisotropicFriction() → bool
setAnisotropicFriction(friction: LVecBase3) → None
getAnisotropicFriction() → LVecBase3
Return type

LVecBase3

getCcdSweptSphereRadius() → float
getCcdMotionThreshold() → float
setCcdSweptSphereRadius(radius: float) → None
setCcdMotionThreshold(threshold: float) → 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’.

static getClassType() → TypeHandle
Return type

TypeHandle

getShapes() → list
property shapes
Return type

Sequence[BulletShape]

property shape_pos
Return type

Sequence[LPoint3]

property shape_mat
Return type

Sequence[LMatrix4]

property shape_transform
Return type

Sequence[ConstPointerTo_TransformState]

property shape_bounds

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

Return type

BoundingSphere

property static

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter

Return type

bool

property kinematic

Getter Setter

Return type

bool

property collision_notification

Getter Setter

Return type

bool

property collision_response

Getter Setter

Return type

bool

property contact_response
Return type

bool

property contact_processing_threshold

Getter Setter

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

Return type

float

property active

Deactivation

Getter

Deactivation

Deactivation

Setter

Return type

bool

property deactivation_time

Getter Setter

Return type

float

property deactivation_enabled

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.

Return type

bool

property debug_enabled
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.

Return type

bool

property restitution

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

Return type

float

property friction

Getter Setter

Return type

float

property anisotropic_friction

Getter Setter

Return type

LVecBase3

property ccd_swept_sphere_radius

CCD

Getter

CCD

CCD

Setter

Return type

float

property ccd_motion_threshold

Getter Setter

Return type

float