The offset, rotation and scale are copied; each left out is the identity.
Optionalposition: Vector3LikeOptionalrotation: QuaternionLikeOptionalscale: Vector3LikeOffset of the shape in the system.
Set it from any Vector3Like, such as a Babylon Vector3; the value is copied.
Offset of the shape in the system.
Set it from any Vector3Like, such as a Babylon Vector3; the value is copied.
Rotation of the shape in the system.
Set it from any QuaternionLike, such as a Babylon Quaternion; the value is copied.
Rotation of the shape in the system.
Set it from any QuaternionLike, such as a Babylon Quaternion; the value is copied.
Scale of the shape, applied before the rotation.
Set it from any Vector3Like, such as a Babylon Vector3; the value is copied.
Scale of the shape, applied before the rotation.
Set it from any Vector3Like, such as a Babylon Vector3; the value is copied.
Moves a freshly initialized particle from shape space into system space.
A copy with its own vectors and quaternion.
Whether the transform moves nothing: zero offset, identity rotation, unit scale.
The JSON form, with only the parts that are not identity.
StaticfromReturns undefined when there is no transform in the JSON.
StatictoThe transform entry of a shape's JSON: empty when the shape has no
transform or an identity one, so shapes without one serialize as before.
Local transform of an emitter shape inside its particle system, like the Position / Rotation / Scale of Unity's Shape module.
A spawn point
plands atposition + rotation * (scale * p). The start direction goes through the same scale and rotation and is then brought back to its old length, so a squashed shape bends directions without changing the start speed — which is what Unity does.