new (?node:Dynamic)
parent:Entity
position:Vector3
scale:Vector3
inline getDirection ():Vector3
inline getParent ():Entity
inline getPosition ():Vector3
inline getRight ():Vector3
inline getRotation2D ():Float
inline getScale ():Vector3
inline getUp ():Vector3
inline getWorldPosition ():Vector3
inline getWorldRotation2D ():Float
inline getWorldScale ():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
setPosition (position:Vector3):Vector3
inline setRotation2D (angle:Float):Void
inline setScale (scale:Vector3):Vector3
inline setWorldPosition (position:Vector3):Void
inline setWorldRotation2D (angle:Float):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
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.
read onlycomponents:ClassMap<Class<Dynamic>, Dynamic>
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.
next:Entity
previous: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.
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.
The class of the component sought.
true if the entity has a component of the type, false if not.