Plane - Mtax-Development/GML-OOP GitHub Wiki

Description

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.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
location
None
Yes
scale
None
Yes
angle
undefined
Yes
sprite
undefined
Yes
color
{int:color}
c_white
Yes
alpha
1
Yes

Construction types

Name
Arguments
New constructor
location {Vector3}
scale {Scale}
angle? {EulerAngle}
sprite? {Sprite|SpriteRenderer}
color? {int:color}
alpha? {real}
Empty
Constructor copy
other {Plane}
⚠️ **GitHub.com Fallback** ⚠️