panda3d.bullet.BulletBodyNode

class BulletBodyNode

Bases: PandaNode

Inheritance diagram

Inheritance diagram of BulletBodyNode

property active

Deactivation

Getter

Deactivation

Deactivation

Setter

Return type

bool

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

Shapes

addShapesFromCollisionSolids(cnode: CollisionNode) → None
property anisotropic_friction

Getter Setter

Return type

LVecBase3

property ccd_motion_threshold

Getter Setter

Return type

float

property ccd_swept_sphere_radius

CCD

Getter

CCD

CCD

Setter

Return type

float

checkCollisionWith(node: PandaNode) → bool
property collision_notification

Getter Setter

Return type

bool

property collision_response

Getter Setter

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 contact_response
Return type

bool

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 deactivation_time

Getter Setter

Return type

float

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

forceActive(active: bool) → None
property friction

Getter Setter

Return type

float

getAnisotropicFriction() → LVecBase3
Return type

LVecBase3

getCcdMotionThreshold() → float
getCcdSweptSphereRadius() → float
static getClassType() → TypeHandle
Return type

TypeHandle

getCollisionResponse() → bool
getContactProcessingThreshold() → float
getDeactivationTime() → float
getFriction() → float
getNumShapes() → int
getRestitution() → float

Friction and Restitution

getShape(idx: int) → BulletShape
Return type

BulletShape

getShapeBounds() → BoundingSphere

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

Return type

BoundingSphere

getShapeMat(idx: int) → LMatrix4
Return type

LMatrix4

getShapePos(idx: int) → LPoint3
Return type

LPoint3

getShapeTransform(idx: int) → TransformState
Return type

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

Getter Setter

Return type

bool

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

Friction and Restitution

Getter

Friction and Restitution

Friction and Restitution

Setter

Return type

float

setActive(active: bool, force: bool) → None
setAnisotropicFriction(friction: 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: 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

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

Return type

BoundingSphere

property shape_mat
Return type

Sequence[LMatrix4]

property shape_pos
Return type

Sequence[LPoint3]

property shape_transform
Return type

Sequence[ConstPointerTo_TransformState]

property shapes
Return type

Sequence[BulletShape]

property static

Static and kinematic

Getter

Static and kinematic

Static and kinematic

Setter

Return type

bool