Cube.getVertexLocation() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
location? |
{Vector3} |
Yes |
scale? |
{Vector3} |
Yes |
angle? |
Yes |
|
sprite? |
{Sprite} |
Yes |
{real[+]}
Return an array containing nested arrays with point locations, resulting in this Shape when connected. That array is formatted differently, depending on whether location is specified. If it is, three-dimensional location data will be included through nested arrays for each side, which then contain nested arrays for each vertex. If location is not specified, flat two-dimensional location data will be returned, prepared for rendering performed by altering the world matrix. In that case, each entry will be additionally nested with data separated in the following way:
• array[0]: vertex location {real[]}
• array[1]: matrix offset from constructor location {real[]}
• array[2]: matrix rotation {real[]}