struct Transform3D
Swift
struct Transform3D
Where an object sits in the world, how it is turned and how big it is.
Applied to the object's own geometry as scale, then rotation about x, y and z in that order, then translation.
Sources/LavaUI/Spatial.swift:59
Constructors
init(position: Vector3 = Vector3(0, 0, 0), rotation: Vector3 = Vector3(0, 0, 0), scale: Vector3 = [1, 1, 1])
Creates a transform. The default leaves the object as it is.
Sources/LavaUI/Spatial.swift:68
Properties
var position: Vector3
Translation, in world units.
Sources/LavaUI/Spatial.swift:61
var rotation: Vector3
Rotation about the x, y and z axes, in radians, applied in that order.
Sources/LavaUI/Spatial.swift:63
var scale: Vector3
Scale along each axis; [1, 1, 1] is the object's own size.
Sources/LavaUI/Spatial.swift:65