Skip to content

Transform

Dylan Baker edited this page Mar 16, 2024 · 4 revisions

The transform describes an entity's transformation. This page outlines the transform structure of the VEML specification.

v1.0+

Transform Types

v1.0+ Scale Transform

A transform for an entity represented by a position, rotation, and scale.

  • position - Position of the entity. Required.

    • x: float - X component of the entity's position.

    • y: float - Y component of the entity's position.

    • z: float - Z component of the entity's position.

  • rotation - Rotation of the entity. Required.

    • x: float - X component of the entity's quaternion rotation.

    • y: float - Y component of the entity's quaternion rotation.

    • z: float - Z component of the entity's quaternion rotation.

    • w: float - W component of the entity's quaternion rotation.

  • scale - Scale of the entity. Can only be used if "size" is excluded.

    • x: float - X component of the entity's scale.

    • y: float - Y component of the entity's scale.

    • z: float - Z component of the entity's scale.

v1.0+ Size Transform

A transform for an entity represented by a position, rotation, and size.

  • position - Position of the entity. Required.

    • x: float - X component of the entity's position.

    • y: float - Y component of the entity's position.

    • z: float - Z component of the entity's position.

  • rotation - Rotation of the entity. Required.

    • x: float - X component of the entity's quaternion rotation.

    • y: float - Y component of the entity's quaternion rotation.

    • z: float - Z component of the entity's quaternion rotation.

    • w: float - W component of the entity's quaternion rotation.

  • size - Size of the entity. Can only be used if "scale" is excluded.

    • x: float - X component of the entity's size (in meters).

    • y: float - Y component of the entity's size (in meters).

    • z: float - Z component of the entity's size (in meters).

v1.0+ Canvas Transform

A transform for a UI element entity represented by a position, rotation, and scale.

  • position-percent - Position of the entity as a percentage of the canvas (measured from top right corner). Required.

    • x: float - X component of the entity's position.

    • y: float - Y component of the entity's position.

  • size-percent - Size of the entity as a percentage of the canvas.

    • x: float - X component of the entity's size.

    • y: float - Y component of the entity's size.

Clone this wiki locally