Enum that defines motor type.
//@input Physics.ConstraintComponent constraintComponentlet constraint = script.constraintComponent.constraint;let motorSettings = constraint.motorSettings;motorSettings.enabled = true;motorSettings.maxImpulse = 10;motorSettings.targetType = HingeMotorType.AngleTarget;motorSettings.targetValue = Math.PI/2;motorSettings = motorSettings; Copy
//@input Physics.ConstraintComponent constraintComponentlet constraint = script.constraintComponent.constraint;let motorSettings = constraint.motorSettings;motorSettings.enabled = true;motorSettings.maxImpulse = 10;motorSettings.targetType = HingeMotorType.AngleTarget;motorSettings.targetValue = Math.PI/2;motorSettings = motorSettings;
A motor that attempts to rotate to or hold a specific angle or position along the hinge axis.
A motor that applies torque to reach or maintain a target speed (angular velocity).
Enum that defines motor type.
Example