-
Notifications
You must be signed in to change notification settings - Fork 1
Transform
The transform describes an entity's transformation. This page outlines the transform structure of the VEML specification.
- Scale Transform: Contains position, rotation, and scale.
- Size Transform: Contains position, rotation, and size.
- Canvas Transform: Contains position-percent and size-percent.
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.
-
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).
-
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.
-
Author: fivesquaredtechnologies@gmail.com License: MIT