Difference between revisions of "API Panel.Collision.GetSinglePos"

From Flowcode Help
Jump to navigationJump to search
 
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>''
 

Latest revision as of 11:55, 16 January 2023

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)