// Create a constraint on an object varfixedConstraint = hingeObj.createComponent("Physics.ConstraintComponent");
// Set up options on that constraint fixedConstraint.debugDrawEnabled = true; fixedConstraint.constraint = Physics.Constraint.create(Physics.ConstraintType.Fixed);
Fully constrain rotation and translation.
See
ConstraintComponent.
Example