Hello, there was a problem in Unity. It is necessary to bind an object to the character's bone, which is animated. How to make the binding go only along the coordinates without rotation (or prohibit rotation of 2 extra vectors that I don’t need), but leave it moving in space after the bone. Thanks for the help!!!!!!!!!!!!!

That's how I place the weapon before the start of the scene and attach it to the character's brush.

enter image description here

enter image description here

And this is how the weapon rotates after playing the animation:

enter image description here

enter image description here

This is how it should be after playing the animation:

enter image description here

enter image description here

PS I have aligned it manually in the last 2 pictures, but it is necessary that it does not rotate, or rather rotate only along one vector, it seems like only along the Y vector.

Thanks a lot, everyone!!!

  • In RigidBody there is a freezing of movement and rotation in any of the three directions - Dr ParadisE
  • I hope he figured out himself in 9 months :) - TEA

1 answer 1

In the RigidBody component there is a freeze of rotation ( Freeze Rotation );