Planet demo extension
Posted: Mon May 11, 2015 11:33 am
Hi Norbo, I trying to get entity (satellite) spinning around other, on elliptical, parametrized orbit, as physically correct as possible.
Simplest, I think, approach would be just to apply LinearVelocity to the satellite on each update to keep it on the orbit of the parent entity - is this would work?
Another option is to modify Planet Demo code but I'm struggling getting it right.
As I understand the demo: GravitationalField counters gravitation force that influences boxes and pulls them back, to the center of planet entity making them orbiting around planet.
How I would parametrized GravitationFiled to spin them around arbitrary axis, i.e. Worlds Y?
Thanks,
S.
Simplest, I think, approach would be just to apply LinearVelocity to the satellite on each update to keep it on the orbit of the parent entity - is this would work?
Another option is to modify Planet Demo code but I'm struggling getting it right.
As I understand the demo: GravitationalField counters gravitation force that influences boxes and pulls them back, to the center of planet entity making them orbiting around planet.
How I would parametrized GravitationFiled to spin them around arbitrary axis, i.e. Worlds Y?
Thanks,
S.