Cube.getVertexLocation() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
location?
Yes
scale?
Yes
angle?
Yes
sprite?
Yes

Returns

{real[+]}

Description

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[]}

⚠️ **GitHub.com Fallback** ⚠️