It looks like you're new here. If you want to get involved, click one of these buttons!
I am new to Game Dev.
I am trying to make a asteroid shooter like game with screen wrap (in unity 2017.4)
But the screen wrap code is not working well
Faulty Screen wrap in action👇️
Instead of teleporting the the object to the other side of the screen it is choosing a random point.
I made a classic WASD movement and point towards mouse script.
Then I put the following script on the player with guidance from
Script for reference👇️
Project for reference👇️
Hope you will help me to fix it.......