API Panel.Collision.GetMultiAxis: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
==Detailed description== | ==Detailed description== | ||
Revision as of 11:55, 16 January 2023
Detailed description
Examples
Calling in a calculation
- Declare a variable 'result' of type BOOL
- Add to a calculation icon:
result = ::Panel.Collision.GetMultiAxis(pos, return_x, return_y, return_z, targetspace)
Detecting Collisions
Simple example showing how to detect for collisions between objects on the panel. An object moves back and forth between two fixed objects. Each time the moving object hits a static object it will change it's direction.