Nocturna
    Preparing search index...

    ObjectEditorImpl implements the EditorObject interface and provides editing capabilities for any GameObject in the level editor.

    Responsibilities:

    • Allows moving, rotating, and scaling the associated GameObject using editor controls.
    • Handles selection state, including visual feedback (scaling and emissive color).
    • Supports serialization for saving/loading object state in the editor.
    • Forwards contact and type queries to the underlying GameObject.

    Usage:

    • Instantiate with a GameObject to wrap it for editor manipulation.
    • Use updatePosition, updateRotation, and updateScale to transform the object based on input.
    • Use setSelected to visually indicate selection.
    • Use serialize to export the object's state.

    Implements

    Index

    Constructors

    Methods

    • Moves the object by a local movement vector, transforming to global coordinates if parented.

      Parameters

      • localMovement: Vector3

        The movement vector in local space.

      Returns void