Jump to content

API Panel.Collision.GetSinglePos: Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 28: Line 28:


==Detailed description==
==Detailed description==
''<span style="color:red;">No additional information</span>''
 




Line 35: Line 35:
* Declare a variable 'result' of type HANDLE
* Declare a variable 'result' of type HANDLE
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Collision.GetSinglePos(pos, test, moveaxis)</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Collision.GetSinglePos(pos, test, moveaxis)</pre>
''<span style="color:red;">No additional examples</span>''

Revision as of 11:55, 16 January 2023

GetSinglePos
Returns the position to move Pos to so it does not collide with Test - null if no collide 
- HANDLE Pos
A component or position to focus the collision around 
- HANDLE Test
An object to test collisions with 
- HANDLE MoveAxis
The position whose axis will be moved along on collide 
- 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)