API Panel.Collision.GetSinglePos

From Flowcode Help
Revision as of 11:55, 16 January 2023 by Wiki bot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Fc9-comp-macro.png GetSinglePos
Returns the position to move Pos to so it does not collide with Test - null if no collide 
Fc9-h32-icon.png - HANDLE Pos
A component or position to focus the collision around 
Fc9-h32-icon.png - HANDLE Test
An object to test collisions with 
Fc9-h32-icon.png - HANDLE MoveAxis
The position whose axis will be moved along on collide 
Fc9-h32-icon.png - HANDLE Return


Detailed description

Examples

Calling in a calculation

  • Declare a variable 'result' of type HANDLE
  • Add to a calculation icon:
    result = ::Panel.Collision.GetSinglePos(pos, test, moveaxis)