Source Academy Modules
    Preparing search index...

    Function copy_position

    • Copy the position values from one GameObject to another GameObject along with delta values.

      Set one or more coordinate value(s) in the deltaPosition Vector3 to the exact value "999999" (six nines) to remain the position of the destination GameObject on the corresponding axis/axes unaffected by this function.

      Parameters

      • from: GameObjectIdentifier

        The identifier for the GameObject that you want to copy position from.

      • to: GameObjectIdentifier

        The identifier for the GameObject that you want to copy position to.

      • deltaPosition: Vector3

        This value will be added to the copied value when copying the position value to the destination GameObject.

      Returns void