A classic 2D sprite that can follow camera orientation to always face it. Sprite front is X forward.

Constructor

@:value({ faceCamera : true, ppu : 1 })new (tile:Tile, ppu:Float = 1, faceCamera:Bool = true, ?parent:Object)

Variables

faceCamera:Bool

If true, will follow camera orientation to always appear facing X coordinate at camera. (default: true)

faceZAxis:Bool

If true, will track camera on Z axis, otherwise only X and Y coordinates will be adjusted, and sprite will look forward at all times. (default: true)

pixelsPerUnit:Float

Pixels per unit value. Affects the sprite size in 3D space. (default: 1)

tile:Tile

Currently displayed h2d.Tile.