Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Drag 3D Object with mouse on its local position

$
0
0
Hi,

I need to drag objects during the game with Charp and mouse . Like you can see in the image below the objects are rotated in different position.

[​IMG]

With the code below when i drag to Y both of them goes to new Y ok. When i drag the object B to his X it goes well to the new X, it goes exactly like the black arrows, But when i drag the object A, does not work good it drags again the object like the black arrow . I need to drag the object every time...

Drag 3D Object with mouse on its local position

Viewing all articles
Browse latest Browse all 1466670

Trending Articles