Skip to content

ScriptObjectMotion

The start and end of a timed object edit.

type ScriptObjectMotion = Readonly<{
fromPosition: Vector3; toPosition: Vector3;
fromRotationDegrees: Vector3; toRotationDegrees: Vector3;
startSessionMs: number; durationMs: number;
}>;
Field Type Description
fromPosition, toPosition Vector3 Start and end positions.
fromRotationDegrees, toRotationDegrees Vector3 Start and end GTA:SA angles.
startSessionMs number Start time on the session clock.
durationMs number Duration in milliseconds.