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
void enable_feedback(bool value)
PN_stdfloat get_applied_impulse(void) const
PN_stdfloat get_breaking_threshold(void) const

Returns the applied impluse limit for breaking the constraint.

static TypeHandle get_class_type(void)
PN_stdfloat get_debug_draw_size(void)
PN_stdfloat get_param(BulletConstraint::ConstraintParam num, int axis = -1)
BulletRigidBodyNode *get_rigid_body_a(void)
BulletRigidBodyNode *get_rigid_body_b(void)
bool is_enabled(void) const

Returns TRUE if the constraint is enabled.

void set_breaking_threshold(PN_stdfloat threshold)

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.

void set_debug_draw_size(PN_stdfloat size)
void set_enabled(bool enabled)
void set_param(BulletConstraint::ConstraintParam num, PN_stdfloat value, int axis = -1)