|
function Update () {
With his code I can move my object around but its constrained by the edges of the screen. How can I bypass these edges so i can move endlessly in any direction? The reason why I'm using this kind of navigation is because I have made a device with a big ball, if you spin this ball in a certain direction a sphere in game will roll in the same direction. Thanks in advance
(comments are locked)
|
|
You could add/substract the mouse delta to the object's transform.position, something like this:
(comments are locked)
|
|
Thanks! Works like a charm.
(comments are locked)
|
