Coordinate System
Every object in your HELIX world has a position, and that position is described with three numbers: X, Y, and Z. Before you move, spawn, or place anything, you need to know how space works in Unreal Engine.
The Axesโ
- X โ Forward/backward (red arrow in HELIX Studio)
- Y โ Left/right (green arrow)
- Z โ Up/down (blue arrow) โ Z is up in Unreal Engine
The unit of measurement is centimeters. A value of 100 means 100 cm, or 1 meter. A doorway is roughly 200 units (2m) tall. A character stands about 180 units.
Vectors โ Position and Directionโ
A Vector (FVector) holds three floats: X, Y, Z. Use it for positions, directions, velocities, and scales. FVector(0, 0, 100) points straight up, one meter.
Rotators โ Orientationโ
A Rotator (FRotator) describes orientation using three angles in degrees:
| Component | Axis | What it does |
|---|---|---|
| Pitch | Y | Tilts up/down (nodding your head) |
| Yaw | Z | Turns left/right (shaking your head) |
| Roll | X | Tilts sideways (tilting your head to your shoulder) |
FRotator(0, 90, 0) means no pitch, rotated 90 degrees to the right, no roll.
Transforms โ The Full Packageโ
A Transform (FTransform) bundles position + rotation + scale into one structure. Every Actor in the world has a transform. It fully describes where an object is, which way it's facing, and how big it is.
Code Examplesโ
- Blueprint
- Lua
- JavaScript
-- Create a vector and move an actor
local new_position = Vector(500, 200, 100)
self:K2_SetActorLocation(new_position, false, nil, true)
local new_rotation = Rotator(0, 90, 0) -- Face right
self:K2_SetActorRotation(new_rotation, true)
-- Get distance between two actors
local dist = self:GetDistanceTo(other_actor)
// Create a vector and move an actor
let newPosition = new Vector(500, 200, 100);
this.K2_SetActorLocation(newPosition, false, undefined, true);
let newRotation = new Rotator(0, 90, 0); // Face right
this.K2_SetActorRotation(newRotation, true);
// Get distance between two actors
let dist = this.GetDistanceTo(otherActor);
Quick Referenceโ
| Real-world thing | Approximate size in UE units |
|---|---|
| A coin | 2-3 cm |
| A door | 100 x 200 cm |
| A character | ~180 cm tall |
| A car | ~450 cm long |
| A football field | ~10,000 cm |
When something looks off โ an object floating, clipping through the floor, or wildly oversized โ check your units. A misplaced decimal can turn a coffee cup into a building.