3d Orbit Rotation - Controllable
3d Orbit Rotation - Controllable
I'm trying to learn how to make an object rotate around another object as if it is in orbit. I'm not here begging for a snippet, I just want some direction in what I should search for the learn the actual math behind it. Any hints?
-
- Posts: 43
- Joined: Mon Dec 01, 2008 6:35 pm
yo, well thats pretty simple, you could:
1. parent the orbiting object to the object it orbits around on,
2. add an rotation animator with an offset ?
in opengl its pretty simple
instead of doing translation/rotation
you do rotation first, then translation (then rotation again if needed)
you should read a little about the matrices you use in 3d application if you really want to learn the math
1. parent the orbiting object to the object it orbits around on,
2. add an rotation animator with an offset ?
in opengl its pretty simple
instead of doing translation/rotation
you do rotation first, then translation (then rotation again if needed)
you should read a little about the matrices you use in 3d application if you really want to learn the math
I'm trying to allow the player to enter the vicinity of a planet, then the ship automatically goes into a sort of "Orbit Mode" but the player can still turn left or right and change the altitude. When the altitude is above a certain value, "Orbit Mode" will exit into free-flight mode. Matrices? I'll check that out.