Hi,
I need to know how can i reset my character to its original pose for example in my attached photos first my character is walking normally then when he sits on the floor and I press the vertical or horizontal buttons to walk he gets a new pose how can i reset him to his original pose when he walks .
Not really enough information to help you unless i assume that this is a animation problem? Try posting the scripts.
It may help to see where the actual position is of the player by adding in something like this
function OnGizmoDraw() { Gizmos.DrawCube( transform.position, Vector3.one * 4 ); }
then turn on the Gizmos button on the top right of the Game.
You’ll see a box at the position of the transform, if the box is actually snapping then its probably a scripting issue, if its not moving at all during the start then its probably the animation. When the character starts to walk after being on the ground or whatever you could use something like a animation bone to transform the transform to where it was previously. Sorry cant help more
If I understand what your asking, when your character goes into a new animation don’t use animation.play or whatever. If you want your player to translate into another animation like from sit to walk try using Animation.CrossFade. Hope this helps.
Hey, that’s the TeamFortress 2 medic !
Ok ok…sorry
Hi,
thanks for the reply. But my problem is that as you can see in image 2 my medic is standing normally when he sits and try to help the man in image 1 and I try to walk with the left, right keys… then the medic stays in the image 3 pose and walks like that.
My question is how can I get him to walk normally like the beginning which means how can I reset his pose to the image 2 pose?
i assume you have an animation of him going from standing to sitting and if so play that animation in reverse when you want him to stand. I would also put a boolean check to see if your player is sitting before movement is processed and if he is make him stand first before moving.
ok thanks i am gonna try that out.
i can’t play it in reverse it contains lots of unneeded animations I can’t just call the begining pose each time I try to walk?
have you tried splitting your animations?
no, should I split my animation to frame one and i try to call that frame?
I am gonna try to do that
that didn’t work.
did you animate this model? because if so you should organize his animations in whatever program you animated him in so your able to split them up cause if its disorganized your going to have a very hard time getting him to do much at all.
it’s not an animation problem it’s a pose problem i need him to stand straight when he stands again after sitting and i don’t know how to do it.
it’s ok it worked i added a boolean and i called it ended when the medic plays the check animation and sits the ended variable is equal true and in the getbutton horizontal and vertical i added if the boolean variable is equal to true play this animation and the medic stood up straight thanks for the replies.