BulletConstraint

from panda3d.bullet import 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_impulsefloat
property breaking_thresholdfloat
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.

property debug_draw_sizefloat

Getter Setter

enableFeedback(value: bool)None
property enabledbool
Getter

Returns TRUE if the constraint is enabled.

Setter

getAppliedImpulse()float
getBreakingThreshold()float

Returns the applied impluse limit for breaking the constraint.

static getClassType()panda3d.core.TypeHandle
getDebugDrawSize()float
getParam(num: ConstraintParam, axis: int)float
getRigidBodyA()BulletRigidBodyNode
getRigidBodyB()BulletRigidBodyNode
isEnabled()bool

Returns TRUE if the constraint is enabled.

property rigid_body_aBulletRigidBodyNode
property rigid_body_bBulletRigidBodyNode
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