This content has been marked as final. Show 3 replies
I'm not sure if I have my head around the specifics you're going for, but in general I've had great success using bezier calculations. Paul Lemon opened it up for me when I found this:
I tend to chop his work up and poke it into my stuff.
You may be going for something a little more like the follow link. It's in progress so the instructions are missing. left click drag to rotate, right click to pan, click both mouse buttons and drag vertically to zoom.
Thanks. The magic word I was looking for is "interpolate", but bezier calculations is even better because it gives you the option to add several "waypoints" in your trajectory.
Nice galaxy, by the way. :-)
Originally posted by: Paulygon
I know this post is old, but you would not happen to have the script for the above demo would ya?
I ask this because, I am trrying to orbit my camera arround an object and I am not getting the results as in the above shockwave 3d demo.
I am have tried rotating with the below method but it causes the camera to fly all over the place...
pCamera.rotate(dx, dy, 0, sprite(me.spriteNum).member.model("box"))
... where dx dy are the rotation angles that I have calculated from where the mouse is located