Change rotate pivot
Template:Rating This page provides a way to change the rotation pivot.
For example, I want to implement a pendulum. My actor has a mesh of cylinder and code implementing the rotation. However, the pivot is not right.
As shown in the video below, the pivot is at the bottom instead of the top. <youtube>https://youtu.be/2ixFvHchXow</youtube>
Instead, we can clear the cylinder mesh of our pendulum actor. Then we create another new cylinder actor and make it the children of our pendulum actor.
Now, it swings like a pendulum.
You can change the position of the pendulum to change the rotation pivot, for example, you can move it to the middle point, so it rotates around the mid point:
This method should be helpful to implement hinged door or other stuff.