Local pose and scale for an entity.
Signature
type Transform {
position: Vec3 = Vec3 {};
rotation: Vec3 = Vec3 {};
scale: Vec3 = Vec3 { x: 1, y: 1, z: 1 };
}Position is meters, rotation is XYZ Euler radians, and scale defaults to one on every axis. Physics owns the position and rotation of dynamic bodies.
Fields
Examples
Set a pose
Create a transform value in meters.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
2
Attach a renderable pose
A scene adapter reads Transform from an entity with geometry.
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
1
Rust definition
Interpreter RecordValue schema consumed by spatial adapters.
View Rust documentation →Support: rendered