Plane - Mtax-Development/GML-OOP GitHub Wiki
Constructs a three-dimensional representation of a two-dimensional Plane Shape. The specified location is its center, from which it is scaled. A two-dimensional Sprite can be rendered using this Shape. If specified with SpriteRenderer, its color and alpha will take precedence over these properties of this Shape during rendering.
Destruction |
Elements |
Garbage Collection |
None |
Name |
Type |
Default |
Modifiable |
location |
{Vector3} |
None |
Yes |
scale |
{Scale} |
None |
Yes |
angle |
undefined |
Yes |
|
sprite |
undefined |
Yes |
|
color |
{int:color} |
c_white |
Yes |
alpha |
{real} |
1 |
Yes |
Name |
Arguments |
New constructor |
location {Vector3}
scale {Scale}
angle? {EulerAngle}
sprite? {Sprite|SpriteRenderer}
color? {int:color}
alpha? {real}
|
Empty |
{void} |
Constructor copy |
other {Plane} |