Defines all necessary vectors/quaternions to compute a 3D model matrix

interface Object3DTransforms {
    origin: {
        model: Vec3;
    };
    quaternion: Quat;
    rotation: Vec3;
    position: {
        world: Vec3;
    };
    scale: Vec3;
}

Properties

origin: {
    model: Vec3;
}

Transformation origin object

Type declaration

quaternion: Quat

Model quaternion defining its rotation in 3D space

rotation: Vec3

Model rotation vector used to compute its quaternion

position: {
    world: Vec3;
}

Position object

Type declaration

  • world: Vec3

    Position vector relative to the 3D world

scale: Vec3

Model 3D scale vector