Quantcast
Channel: Answers for "C# moveOnMouseClick Rotation"
Viewing all articles
Browse latest Browse all 4

Answer by MutualTeats

0
0
If I got your question right you want to rotate the gameObject, but not the camera (it should be fixed like in Pokémon Colosseum or Diablo). That means that you'll need to use one script for the gameObject and one for the camera. The script you posted for the gameObject will probably work fine (though it could be shortened). Here is the script for the camera: http://pastebin.com/eaaJSz30 Note: The camera should NOT be a child to the player

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images