Gizmo199
Member
GM Version: Studio 1.4
Target Platform: ALL
Download: Concave fixture example
Links: N/A
In the above example, you can see how to use path points to bind multiple convex fixtures to an object to create a 'line' that follows a concave structure.
Basically how it works is that it reads all of the path points in the path and uses a 'for' loop to read the current point position and the previous point position and creates two points. It then reads which direction the points are progressing as either LEFT or RIGHT. It will then create the 3rd point either below the current point ( LEFT ) or above the current point ( RIGHT ) to ensure that the physics points are created in 'clockwise' order.
Target Platform: ALL
Download: Concave fixture example
Links: N/A
In the above example, you can see how to use path points to bind multiple convex fixtures to an object to create a 'line' that follows a concave structure.
Basically how it works is that it reads all of the path points in the path and uses a 'for' loop to read the current point position and the previous point position and creates two points. It then reads which direction the points are progressing as either LEFT or RIGHT. It will then create the 3rd point either below the current point ( LEFT ) or above the current point ( RIGHT ) to ensure that the physics points are created in 'clockwise' order.