How to rotate axis of the object but keep object on same angle


how to turn Y-axis to big green position. ? but keep object on same angle

(I need to lock magazine movement, but it’s not folow current y-axis. so, I desided to move y-axis some how…)

Not sure exactly what you’re asking, but based on what I think you’re asking (how to rotate the magazine so you can have the Y axis at a slope on the magazine), the two main choices are:

  • redo the geometry in question to align with what you want

OR

  • reparent the object to another object but at an angle, so you slide the parent object
2 Likes

thanks.

now I have several probems: looks like it’s imposible.

  1. I need to move pistol magazine by my hand (not handle, but phisics)
  2. I need to have gravity on it (to be able to lose or drop it)
  3. I need strong restrictions for it’s movement. ONLY to green line (see picture in the post)

1.configurable Joint - does not hold securely in the shaft, while I insert it and move, there is inertia, you can easily knock the gun through the shaft to the side.. rattling.. in short. it turns out very shitty.
2. ArticulationBody (joint) - does not work normally. The gun is a child object of the joystick.. and there is a rigitbody.. does not work normally in motion.
3. I tried with code, but then you can’t attach physics (neither gravity nor pushing with a hand)

maybe there are some ideas from experienced people? (animation is not suitable, because there will be no physics)