Optionally list any component types this component depends on If the owner entity does not have these components, new components will be added to the entity
Only components with zero-arg constructors are supported as automatic component dependencies
Observable that notifies when the position changes
Type of this component, must be a unique type among component types in you game.
Observable that emits when the z index changes on this component
The current position of the entity in world space or in screen space depending on the the coordinate plane.
If a parent entity exists coordinates are local to the parent.
The current position of the entity in world space or in screen space depending on the the coordinate plane.
If the entity has a parent this position is relative to the parent entity.
The rotation of the entity in radians. For example Math.PI
radians is the same as 180 degrees.
The rotation of the entity in radians. For example Math.PI
radians is the same as 180 degrees.
If the entity has a parent this rotation is relative to the parent.
The z-index ordering of the entity, a higher values are drawn on top of lower values. For example z=99 would be drawn on top of z=0.
The z-index ordering of the entity, a higher values are drawn on top of lower values. For example z=99 would be drawn on top of z=0.
Clones any properties on this component, if that property value has a clone()
method it will be called
Optional callback called when a component is added to an entity
Optional callback called when a component is added to an entity
The coordinate plane| for this transform for the entity.