Source Academy Modules
    Preparing search index...

    Function translate_local

    • Moves a GameObject with given x, y and z values, with respect to its local space.

      The current rotation of the GameObject will affect the real direction of movement.

      In Unity, usually, the direction of +Z axis denotes forward.

      Parameters

      • gameObjectIdentifier: GameObjectIdentifier

        The identifier for the GameObject that you want to translate.

      • deltaPosition: Vector3

        The values you want to move the GameObject along each axis with respect to the local space.

      Returns void