panda3d.bullet.BulletConstraint

class BulletConstraint

Bases: TypedReferenceCount

Inheritance diagram

Inheritance diagram of BulletConstraint

getRigidBodyA() → BulletRigidBodyNode
Return type

BulletRigidBodyNode

getRigidBodyB() → BulletRigidBodyNode
Return type

BulletRigidBodyNode

enableFeedback(value: bool) → None
setDebugDrawSize(size: float) → None
getDebugDrawSize() → float
getAppliedImpulse() → float
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.

getBreakingThreshold() → float

Returns the applied impluse limit for breaking the constraint.

setEnabled(enabled: bool) → None
isEnabled() → bool

Returns TRUE if the constraint is enabled.

setParam(num: ConstraintParam, value: float, axis: int) → None
getParam(num: ConstraintParam, axis: int) → float
static getClassType() → TypeHandle
Return type

TypeHandle

property rigid_body_a
Return type

BulletRigidBodyNode

property rigid_body_b
Return type

BulletRigidBodyNode

property debug_draw_size

Getter Setter

Return type

float

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 enabled
Getter

Returns TRUE if the constraint is enabled.

Setter

Return type

bool

enum ConstraintParam
enumerator CP_erp = 1
enumerator CP_stop_erp = 2
enumerator CP_cfm = 3
enumerator CP_stop_cfm = 4