Entity Coordinate System
Ursina uses a right-handed 3D coordinate system:
- X axis points to the right
- Y axis points upward
- Z axis points forward toward the viewer
y (up)
|
|
(forward) z |
\ |
\|
*---------- x (right)
Right-hand rule
- Point your right hand thumb along +X
- Point your index finger along +Y
- Your middle finger then points along +Z
Usage
- Move an entity:
entity.position = Vec3(x, y, z)
- Rotate an entity:
entity.rotation = Vec3(rx, ry, rz)
- Continuous rotation:
entity.rotate(amount)