Clamp or wrap position.
Categories > Movement > rex_boundaryIntroductionLinksDependenceUsageSet boundariesModePosition and percentagePosition --> percentagePercentage --> position
None
Horizontal
Enable
Horizontal
to Yes
, orAction:Horizontal boundary enable
Expression:HorizontalEnable
Boundaries
Property Left
, property Right
, or
Action:Set horizontal boundary
, or
Action:Set horizontal boundary to
Expression:LeftBound
, Expression:RightBound
Vertical
Enable
Vertical
to Yes
, orAction:Vertical boundary enable
Expression:VerticalEnable
Boundaries
Property Top
, property Bottom
, or
Action:Set vertical boundary
, or
Action:Set vertical boundary to
Expression:TopBound
, Expression:BottomBound
When position is out of boundary
Property Mode
Clamp
: clamp position in the boundary
Property Align
Boundaries
: align boundaries box of this object to reached boundaryOrigin
: set position to reached boundariesWrap
Property Align
Boundaries
: align boundaries box of this object to opposite boundary
Origin
: set position to opposite boundary
Mode wrap
(sample capx)
Property Align
Boundaries
: not supportedOrigin
: set position to opposite boundary with an offset to keep the moving distanceTriggers
Condition:On hit any boundary
Condition:Is hit boundary
Horizontal
Condition:On hit left boundary
Condition:On hit right boundary
Vertical
Condition:On hit top boundary
Condition:On hit bottom boundary
Expression:HorPercent
: ( inst.X - left ) / ( right - left )
Expression:HorScale
: map Expression:HorPercent
to another valueExpression:VerPercent
: ( inst.Y - top ) / ( bottom - top )
Expression:VerScale
: map Expression:VerPercent
to another valueExpression:HorPercent2PosX
: percentage --> XExpression:HorPercent2PosY
: percentage --> Y