I apologize for asking the most basic of questions here, but I've been at this for several hours and just can't wrap my head around it.
What I'm using: The move and camera scripts from the Lerpz demo. What I'm trying to do: Move my model only with the "W" and "S" keys (vertical axis). I want the model to rotate/controller to "turn" without moving using the "A" and "D" keys ( horizontal axis). Additionally, and this is the part thats giving me the most pain: I want the model to always "face forwards" so that it doesn't flip and face the camera.
Essentially, it's similar to a tank movement control, but I can seem to keep it all working. I've found some code with varying degrees of success and done a lot of the tutorials, but still not working too well.
Can anyone help with what tools I should be looking to, or any guides? As I'm trying to learn, I don't necessarily just want the JS and unity code.
asked Sep 25 '10 at 08:42 PM
Your best bet would be to parent the camera to your character, then have a script on your player that does as you describe.
answered Jan 28 at 12:58 AM
If you are using controller scripts of unity, your model / player will turn using mouse movement, In character have a mouse look up script to rotated player..... and as "TRiToNDREyJA" said Smooth Follow Script will make camera always see you model from it's back so user can see what happing his forward side.
If you want to face model to camera, you need to create a new other script for cam follow
answered Jan 28 at 04:42 AM