Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

InstancePlacement

One copy of the model: where its foot stands, how it is turned and sized, and the colour it is multiplied by.

Property Type Description
position Position The point the model’s lowest point stands on, however the copy is turned: x and z place the file’s origin, and y the lowest corner of its hull, or of its box where its manifest kept no hull.
rotation? RotationInput The copy’s own rotation before its turn, as an Entity’s rotation takes it: Euler angles in radians, or a unit quaternion, such as [0, 0, Math.PI] for a boat keel up. Left out, upright. Unity’s and Godot’s transforms and Unreal’s rotator all give an instance a full rotation; turn stays beside it for the yaw.
scale? number | Position A multiple of the model’s own size, one for every axis or one each.
tint? ColorRepresentation -
turn? number Radians about y, after rotation: a yaw alone, the common case, goes here, and a scatter hashes it.