示例#1
0
 /// <summary>
 /// Manual registering of a constraint in case a constraint gets added during runtime.
 /// Only active and enabled constraints can be registered to the constraint manager.
 /// </summary>
 internal void RegisterConstraint(TransformConstraint constraint)
 {
     if (constraint.isActiveAndEnabled)
     {
         constraints.Add(constraint);
         constraint.Initialize(initialWorldPose);
     }
 }
示例#2
0
 /// <summary>
 /// Unregister a constraint from the manager.
 /// </summary>
 internal void UnregisterConstraint(TransformConstraint constraint)
 {
     constraints.Remove(constraint);
 }