Hi everyone!
What’s the best way to animate character with script?
I tried to find something about script animation, but not succeeded
I know, that it’s better to use animation, but i can’t use it, because parts of my character, which will be animated, have rigidbodies and joints (he is climbing a ladder). So in climbing animation I have to remove joint from previous step, search for the next step and if it exists, move my hand to it and create joint.
I already implemented it with mouse control, but it’s too boring to move each body part, so my character must move automatically.
Any help and advices will be greatly appreciated! Thanks in advance
hi! if you mean make an entire skeletal animation via scripting I’d strongly try to dissuade you from doing that- better create the animation in the 3d modeling program and just play them back in unity
Thanks for reply, Yuriy!
Yes, I know this method, and it seems that I will have to use it…
Is it that bad to animate skeleton via script?
For organic things, it’s hard. For mechanical things, it’s quite a bit easier. So it really depends on your needs.
In your case, you said it was a character climbing a ladder… So yeah, that would be difficult. By using kinematics, you could probably make it happen… But it would probably still be painful.
Some related Q&A: How to do inverse kinematics (IK) in Unity? - Questions & Answers - Unity Discussions
Thank you, wccrawford!
upd: Thanks everyone who replied me!) I think that animate via scripting wasn’t so good idea I’ll try to do it with standard animation