panda3d.bullet.BulletConstraint

class BulletConstraint

Bases: TypedReferenceCount

Inheritance diagram

Inheritance diagram of BulletConstraint

enum ConstraintParam
enumerator CP_erp = 1
enumerator CP_stop_erp = 2
enumerator CP_cfm = 3
enumerator CP_stop_cfm = 4
property applied_impulse
Return type

float

property breaking_threshold
Getter

Returns the applied impluse limit for breaking the constraint.

Setter

Sets the applied impulse limit for breaking the constraint. If the limit is exceeded the constraint will be disabled. Disabled constraints are not removed from the world, and can be re-enabled.

Return type

float

property debug_draw_size

Getter Setter

Return type

float

enableFeedback(value: bool) → None
property enabled
Getter

Returns TRUE if the constraint is enabled.

Setter

Return type

bool

getAppliedImpulse() → float
getBreakingThreshold() → float

Returns the applied impluse limit for breaking the constraint.

static getClassType() → TypeHandle
Return type

TypeHandle

getDebugDrawSize() → float
getParam(num: ConstraintParam, axis: int) → float
getRigidBodyA() → BulletRigidBodyNode
Return type

BulletRigidBodyNode

getRigidBodyB() → BulletRigidBodyNode
Return type

BulletRigidBodyNode

isEnabled() → bool

Returns TRUE if the constraint is enabled.

property rigid_body_a
Return type

BulletRigidBodyNode

property rigid_body_b
Return type

BulletRigidBodyNode

setBreakingThreshold(threshold: float) → None

Sets the applied impulse limit for breaking the constraint. If the limit is exceeded the constraint will be disabled. Disabled constraints are not removed from the world, and can be re-enabled.

setDebugDrawSize(size: float) → None
setEnabled(enabled: bool) → None
setParam(num: ConstraintParam, value: float, axis: int) → None