Constraint System Manual

Limit Location

LimitLocation constraint ensure the position of owner to stay within specified limits.

Check the preview image below:

LimitLocation1 


Here we explain each options in the LimitLocation editor;

(You might already notice that this constraint doesn't need a target to work)

LimitLocation2 

Limits

The "Limits" provides six available limit options; The options are all independent, developers could toggle on/off any of them to fit specific needs;

E.g.:

  • If we toggle on XMin & XMax, then the position.x of owner will be limited with the given range;
  • If we toggle on only XMin, then the position.x of owner will be limited to be always larger than XMin;
  • If we toggle off both XMin & XMax, then the position.x of owner will not be affected by this constraint;

(Also, if all of the six limits are enabled, then a blue box gizmos will be drawn to indicate the limited space)