/// <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); } }
/// <summary> /// Unregister a constraint from the manager. /// </summary> internal void UnregisterConstraint(TransformConstraint constraint) { constraints.Remove(constraint); }