Constructor

new (?node:Dynamic)

Variables

Methods

inline getParent ():Entity

inline getRight ():Vector3

inline getScale ():Vector3

inline getUp ():Vector3

inline get_parent ():Entity

inline lookAt (position:Vector3, ?upVector:Vector3, transformSpace:Int = 2):Void

inline pitch (angle:Float, transformSpace:Int = 0):Void

inline roll (angle:Float, transformSpace:Int = 0):Void

inline setDirection (direction:Vector3):Void

inline setParent (parent:Entity):Void

inline setRotation2D (angle:Float):Void

inline setScale (scale:Vector3):Vector3

inline setWorldPosition (position:Vector3):Void

inline setWorldScale (scale:Vector3):Void

inline set_parent (parent:Entity):Entity

inline translate (delta:Vector3, transformSpace:Int = 0):Void

inline translate2D (delta:Vector2, transformSpace:Int = 0):Void

inline yaw (angle:Float, transformSpace:Int = 0):Void

Inherited Variables

Defined by Entity

read onlycomponentAdded:Signal2<Entity, Class<Dynamic>>

This signal is dispatched when a component is added to the entity.

read onlycomponentRemoved:Signal2<Entity, Class<Dynamic>>

This signal is dispatched when a component is removed from the entity.

name:String

Optional, give the entity a name. This can help with debugging and with serialising the entity.

nameChanged:Signal2<Entity, String>

Dispatched when the name of the entity changes. Used internally by the engine to track entities based on their names.

Inherited Methods

Defined by Entity

get<T> (componentClass:Class<Dynamic>):T

Get a component from the entity.

Parameters:

componentClass

The class of the component requested.

Returns:

The component, or null if none was found.

getAll ():Array<Dynamic>

Get all components from the entity.

Returns:

An array containing all the components that are on the entity.

has (componentClass:Class<Dynamic>):Bool

Does the entity have a component of a particular type.

Parameters:

componentClass

The class of the component sought.

Returns:

true if the entity has a component of the type, false if not.