unity-game-engineblender

How can I move a collision box with an imported animation from Blender?


So I need to move this collision box along with the animated mesh. The model and collision box, the inspector menu for the model. I have looked online but nothing I do works, am I missing something?

Please save me.

The animation in question is where the model lifts its hand and swings forwards. I also cannot edit this animation within Unity.


Solution

  • With no information on how your animation is set up, it's hard to give a definitive answer.

    For the collider to match the object and move with it, you should see if your model consists of multiple meshes or bones. If so, you could make several box colliders on your bones or meshes that roughly match the shape of the object / bone. Then they will move, rotate and scale along with their game objects.

    If you did not use bones and just a single mesh in blender in the first place, I would advise you to rework the animation for your unity project.