Dinu Adrian
Dinu Adrian

Reputation: 139

Why does the root motion animation make the prefab move in the opposite direction?

So basically I want to make a prefab (a cat) climb a wall, I wanna do it with basic root motion animation. Since I am new with unity and is my first time doing this I decided that I need to do a little bit of testing without any complicated animations, that being said, I made a simple animation, just moving the cat prefab, in the animation clip, the cat is moving on the +z axis.

HOWEVER, when I check the "root motion" check box and I click "Generate root motion curves" , instead of moving on the +z axis the cat is now moving on the -z axis, even if the cat is animated to move on the +z axis. Why is this happening and how can I fix it?

Upvotes: 0

Views: 2222

Answers (2)

Dinu Adrian
Dinu Adrian

Reputation: 139

I found the problem, I only used the position of the object in the unity animation, using the position PLUS the rotation will fix the problem.

Upvotes: 0

Jorge Manuel Bello
Jorge Manuel Bello

Reputation: 320

Maybe your model is using different axys coordinates than Unity's. Blender for example has that problem.

Upvotes: 1

Related Questions