# Learning to code by making 2.5 D space Shooter

Objective : Implement Player Teleporting

When Player x positions is greater than 11 , x position should be -11 and When x position is less than -11 then x position should be11

In order to do this we use if statement to check condition of the position and Vector3 to define new position if condition is true

But If we check the condition then set new position like this we will get an error .

This is because we can not Ignore other dimension since we have Vector3 which means we need to acknowledge other dimension of y,z.

**The first** step is we need to set new position when our player position > 11, and we do this by set new Value of of x position.

we only set new position of x only and leave any current position of y

Second lets finish the second position when player x position is less than -11 x position need to be 11