|
Hay Guys, I'm currently in the process of writing a simple movement system. As you can see from the attached image, the main camera is looking over the cube. I have wrote the following script which basically moves the cube forward (with varying speeds)
How do i implement a "rotate towards mouse". Wherever the mouse is pointing, the cube will rotate towards that point.
(comments are locked)
|
|
some thing like Input.mousePosition http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html take a look at some of the basic tutorials http://unity3d.com/support/resources/tutorials/ im sure one of them has a script similar to what you want. (try the FPS)
(comments are locked)
|
|
(comments are locked)
|

