How do I move and rotate the object on itself by pushing the protruding bar?
1 Like
Most basic case is
with
Notice, that rotation axis might change depending on what mesh you have there. Also, at the moment, it always rotates one way. We need a bit more code so it always rotates away from the player.
Yup:
And if you want, you can only run the tick stuff after an overlap has occurred, and stop when the overlap stops.
With tick correction, assuming you’re running at about 100FPS
3 Likes