Hi,
First post here, loving Playmaker so far!
After much head scratching on how to get an object to orbit a planet, I've finally succeeded and managed to keep the orbiting object facing the planet. I have a camera attached to the orbiting object which looks at its own velocity. It all works really well with one exception, there seems to be some occasional random jitter.
I'm not sure if the camera is fighting something else, but the jitter ranges from hardly noticeable to occasional big, quick swings. It seems completely random, *maybe* it increases more the longer its been running for, and *maybe* I've noticed it happen more when it makes a close pass over the collision mesh, but its still unpredictable.
As a breakdown, I've set up my scene like so:
Orbiting object:
Look at planet 0,0,0
Use a sample curve for gravity at different distances from 0,0,0
Add force (gravity) along z axis
Main Camera, child of above object:
Get orbiting object velocity and position, add them together, smooth look at that position.
Empty game object (also child of orbiter) placed -20 on the z axis to use as the up vector position for smooth look.
I'm not 100% sure but I think the jitter occurs only/mainly on the x axis (relative to the camera) ie, it jerks left and right. It's hard to tell if the movement is a rotation or not but I'm pretty sure it is jerking/rotating around the y axis.
I've checked the debug ray for the look at 0,0,0 fsm, and the ray always seems to stay on 0.
Have also checked the debug ray for looking at velocity, but its quite difficult to check on a moving object!
There are no other scripts running, and the other fsms on the orbiter and camera shouldn't have any effect.
Any thoughts what might be causing it? Or if I've done this correctly to begin with?
Thanks,
Jay
*edit
For more clues...
At the game start, there is a big glitchy rotation that happens around the z axis, which then just always irons itself out after its rotated back and forth once or twice. I'm guessing though that this is due to the fact that there is no velocity right at the start, so the camera is somehow trying to look at the orbiter, which it is right on top of (the camera is right on top of the orbiter, ie first person).