Hello Everyone
i have GameObject [Torus] Follow The Mouse
var mousePos = Input.mousePosition;
var wantedPos = Camera.main.ScreenToWorldPoint (Vector3 (mousePos.x, mousePos.y, 10));
transform.position = wantedPos;
The Problem That When i The Mouse Be Inside Another GameObject The Torus Disappear
I Cant Explain It With My Bad English
lemme Show You Picture


as you can see the picture
when i move the Torus it can go throw wall,
i dont need that
i want it to flip 90 degree Just Like Posting On Wall
Just Like Magnetic ,
//EDIT : I Tried To Make
transform.Rotate(90, 90, 0);
but the problem that Gameobject still Move Throw Wall [ I Added Collider]
it will be good if i just find way to not let the gameobject go throw the walls
yes guide me more please because i want to make vertical Aim in Top-Down Game
– D3m0nE