BulletHingeConstraint
from panda3d.bullet import BulletHingeConstraint
- class BulletHingeConstraint
Bases:
BulletConstraint
The hinge constraint lets two bodies rotate around a given axis while adhering to specified limits. It’s motor can apply angular force to them.
Inheritance diagram
- __init__(*args, **kwargs)
- angular_only
- enableAngularMotor()
C++ Interface: enable_angular_motor(const BulletHingeConstraint self, bool enable, float target_velocity, float max_impulse)
- /**
Applies an impulse to the constraint so that the angle changes at
target_velocity where max_impulse is the maximum impulse that is used for
achieving the specified velocity.
Note that the target_velocity is in radians/second, not degrees.
*/
- enable_angular_motor()
C++ Interface: enable_angular_motor(const BulletHingeConstraint self, bool enable, float target_velocity, float max_impulse)
- /**
Applies an impulse to the constraint so that the angle changes at
target_velocity where max_impulse is the maximum impulse that is used for
achieving the specified velocity.
Note that the target_velocity is in radians/second, not degrees.
*/
- frame_a
- frame_b
- getClassType()
C++ Interface: get_class_type()
- getHingeAngle()
C++ Interface: get_hinge_angle(const BulletHingeConstraint self)
- /**
Returns the angle between node_a and node_b in degrees.
*/
- getLowerLimit()
C++ Interface: get_lower_limit(BulletHingeConstraint self)
- /**
Returns the lower angular limit in degrees.
*/
- getUpperLimit()
C++ Interface: get_upper_limit(BulletHingeConstraint self)
- /**
Returns the upper angular limit in degrees.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_hinge_angle()
C++ Interface: get_hinge_angle(const BulletHingeConstraint self)
- /**
Returns the angle between node_a and node_b in degrees.
*/
- get_lower_limit()
C++ Interface: get_lower_limit(BulletHingeConstraint self)
- /**
Returns the lower angular limit in degrees.
*/
- get_upper_limit()
C++ Interface: get_upper_limit(BulletHingeConstraint self)
- /**
Returns the upper angular limit in degrees.
*/
- hinge_angle
- lower_limit
- setAngularOnly()
C++ Interface: set_angular_only(const BulletHingeConstraint self, bool value)
- /**
*/
- setAxis()
C++ Interface: set_axis(const BulletHingeConstraint self, const LVector3f axis)
- /**
Sets the hinge’s rotation axis in world coordinates.
*/
- setFrames()
C++ Interface: set_frames(const BulletHingeConstraint self, const TransformState ts_a, const TransformState ts_b)
- /**
*/
- setLimit()
C++ Interface: set_limit(const BulletHingeConstraint self, float low, float high, float softness, float bias, float relaxation)
- /**
Sets the lower and upper rotational limits in degrees.
*/
- setMaxMotorImpulse()
C++ Interface: set_max_motor_impulse(const BulletHingeConstraint self, float max_impulse)
- /**
Sets the maximum impulse used to achieve the velocity set in
enable_angular_motor.
*/
- setMotorTarget()
C++ Interface: set_motor_target(const BulletHingeConstraint self, const LQuaternionf quat, float dt) set_motor_target(const BulletHingeConstraint self, float target_angle, float dt)
- set_angular_only()
C++ Interface: set_angular_only(const BulletHingeConstraint self, bool value)
- /**
*/
- set_axis()
C++ Interface: set_axis(const BulletHingeConstraint self, const LVector3f axis)
- /**
Sets the hinge’s rotation axis in world coordinates.
*/
- set_frames()
C++ Interface: set_frames(const BulletHingeConstraint self, const TransformState ts_a, const TransformState ts_b)
- /**
*/
- set_limit()
C++ Interface: set_limit(const BulletHingeConstraint self, float low, float high, float softness, float bias, float relaxation)
- /**
Sets the lower and upper rotational limits in degrees.
*/
- set_max_motor_impulse()
C++ Interface: set_max_motor_impulse(const BulletHingeConstraint self, float max_impulse)
- /**
Sets the maximum impulse used to achieve the velocity set in
enable_angular_motor.
*/
- set_motor_target()
C++ Interface: set_motor_target(const BulletHingeConstraint self, const LQuaternionf quat, float dt) set_motor_target(const BulletHingeConstraint self, float target_angle, float dt)
- upper_limit