i have a gravity vector (0, -9.8) for a world and an object. this object is attached to the world. How can i calculate the gravity if i modify the rotation of the world?
i.e. if i rotate the world 10 degrees to the left, the object should start to move to the left.
The friction si 0 so we have an ideal case. I need a real solution to make the world behave as in real life.
Thanks!
That’s what rotation matrices are for: http://en.wikipedia.org/wiki/Rotation_matrix