to know about animations and how to code this animations to make my character move.
I have certain 3d characters of my own with their animations. So my problem is the camera issue, because it looks like it’s playing the character from the front and not from behind (which is my goal)
By the way, I’ve used the “Smooth Look At” script for the camera.
So, here is a picture of what I’m facing:
So as you can see, this problem with the camera is driving me crazy because when I move the character to the left with the left arrow key it moves to the right because the camera is in front of the character. (The same issue with the other directions too)
Can you find a way to solve this issue? Thanks in advance for your help!
It happend to me once, was because of my object rotation. I don’t know if will help you, but to solve my problem, i’ve changed the orientation of my character at 3ds max. You could try to change yours and re-import the model again.
@Black Mantis: Yes, I do have a camera script attached to the Camera and the target is set to be the 3d character. I’ve tried with Smooth Look At, Smook Follow, Spring follow and every script has the same result, the character still moves to the wrong way because of the orientation. My character faces positive z as its transform, but when I hit play… it looks at the camera and walks to every side but as you see… the orientation is the problem because when he walks to the left with left arrow key, he moves to the right… still don’t know how to work this out…
@fano_linux: How did you change the rotation of the object? I’m using Maya by the way.
So here is my solution, I’ve made my character model a child of an empty game object, and inside this empty gameobject put the controller with its coordinates or transform already changed looking to the side I want. Then I attached my character model as a child and voilá! It works now, I had to change the animation controller to reach for the child, because this scripts are attached to my empty game object… with all this, it’s already working finally and I never had to change through maya !