Class: LocationTrait
traits.LocationTrait
Adds x
, y
and angle
to entity,
describing its location and rotation,
relative to its parent.
Constructors
constructor
• new LocationTrait()
LocationTrait Properties
angle
• angle: number
Rotation in degrees
x
• x: number
X offset relative to entity's parent
y
• y: number
Y offset relative to entity's parent