Entity Coordinate System

Overview of the 3D space axes orientation used for positioning and rotating entities in Ursina Engine

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

  1. Point your right hand thumb along +X
  2. Point your index finger along +Y
  3. 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)