Position
Note: This documentation is for the old 0.1.0 version of A-Frame. Check out the documentation for the current 1.5.0 version
The position
component defines where an entity is placed in the scene’s world space. It takes an XYZ coordinate as three space-delimited numbers. All entities inherently have the position
component.
<a-entity position="0 1 -1"></a-entity> |
A-Frame uses a right-handed coordinate system where the negative Z axis extends into the screen. The table below assumes looking down the negative Z axis from the origin.
Value | Description | Default Value |
---|---|---|
x | Negative X axis extends left. Positive X Axis extends right. | 0 |
y | Negative Y axis extends up. Positive Y Axis extends down. | 0 |
z | Negative Z axis extends in. Positive Z Axis extends out. | 0 |