Skip to main content

LocalTransform

type LocalTransform = {
position: Vec3;
orientation: Quat;
scale: Vec3;
eulerOrientation: Vec3;
globalEulerOrientation: Vec3;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:476

Local transform of the entity.

Type declaration

NameTypeDescription
positionVec3x, y, z position of the entity.
orientationQuatOrientation of the entity expressed as a quaternion.
scaleVec3x, y, z scale of the entity.
eulerOrientationVec3Orientation of the entity expressed as euler angles.
globalEulerOrientationVec3Last global orientation of the entity expressed as euler angles submitted by a user. This value may not be valid, and should be checked.