Preparing search index...

    Provides read and write access to an entity's world-space transform.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    for (const sceneObject of scene.rootSceneObjects) {
    const wt = sceneObject.worldTransform;
    console.log(`SceneObject: ${sceneObject.name}`);
    console.log(` world position: ${wt.position}`);
    console.log(` world rotation: ${wt.rotation}`);
    console.log(` world scale: ${wt.scale}`);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    position: vec3

    World-space position of the object as a vec3.

    rotation: vec3

    World-space rotation of the object in Euler angles as a vec3.

    scale: vec3

    World-space scale of the object as a vec3.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean