HingeConstraint

Creates a movable joint or mechanism like the one found door, gate, or lid that swings as it opens and closes or which connects two linked physic objects.

See Also

Static Variables


Name Description
rigidconstraint Underlying RigidConstraint associated to the current hinge.
angular_lower_limit Lower angular limit of the hinge in degree.
angular_upper_limit Upper angular limit of the hinge in degree; ranging from -180 to 180.
softness Percentage of limits where the movement is free, beyond this value the limit is reinforced until the hard limit of 1.0 is reached.
bias Strength with which the constraint resists zeroth order limit violation.
relaxation The nearest to 0 the value is the less the constraint will fight velocities that violates angular limits.
motor_enabled Enable or disable a constant motor force on the hinge.
motor_target_velocity Specify the targeted amount of velocity the motor should reach.
motor_max_impulse Controls the maximum impulse value the motor will be generating.
cfm Controls the default constant force mixing.
cfm_stop Controls the force mix factor to use when upper or lower limits are reached.
erp_stop Controls the default constant force mixing.

Variables


Name Description
use_referenceFrameA Invert the hinge direction.
angular_only Force the system to only process angular axes.

Functions


Name Description
SetFrames Specify the HingeConstraint frames that creates the constraint.
SetLimits Specify the HingeConstraint limites.
SetMotor Control the motor of the active HingeConstraint.
SetOverrides Overrides the default HingeConstraint force mixing and error reduction parameter.
GetAngle Return the current hinge angle in degree.




NRG - API 2022.4.384543 - Fri Nov 4 2022
Copyright © 2022 nrgcore.com. All Rights Reserved. Terms of Service - Privacy Policy - EULA