When animation stop while animation is still playing, Tool's part orientation get weird

  1. What do you want to achieve?

Make the tool part never get broke even after animation stopped.

  1. What is the issue?

When animation stop while animation is still playing, Tool part that was under control in the animation will change the orientation of that part.

I’m pretty sure that its not script fault since it can happen in any script that i play animation on.

I use Motor6D for the welding tool’s part to handle of tool.

Using RigEdit Lite plugin for the easier welding.

  1. What solutions have you thought of so far?

Tried to change priority of animation, Looked for solution in forum.

Video:

As you can see in the video, when i play reload animation (Which animate tool’s part), and re-equip the gun, the part of gun’s orientation looking different that previous one.

2 Likes

Just resetting position of welded parts when equipped isn’t ok?

2 Likes

I thought of similar thing like that too, But i realized that it wouldn’t be fundamental solution to this issue.

1 Like

I understand what you are saying, but first, usually the position should not be reset when animation is interrupted.
So I guess we have to reset it with either gun.equipped or reload-animation.stopped. Well, it would be better if it resets when it is interrupted instead of every time.