Constraints translation and a single axis of rotation. See also: ConstraintComponent.
Example
// Create a constraint on an object varhingeConstraint = hingeObj.createComponent("Physics.ConstraintComponent");
// Set up options on that constraint hingeConstraint.debugDrawEnabled = true; hingeConstraint.constraint = Physics.Constraint.create(Physics.ConstraintType.Hinge);
Constraints translation and a single axis of rotation. See also: ConstraintComponent.
Example