Pivoting Camera

Blitz3D Forums/Blitz3D Beginners Area/Pivoting Camera

siread(Posted 2007) [#1]
Hello. I'm a little bit confused. I've set up a pivot at 0,0,0 and attached a camera to it. I've positioned the camera at 0,0,-3. There is an object (a sphere) in my world at 1,0,0.

Now, when I rotate the pivot the camera moves around it as it should and the view of the sphere changes. Where I'm confused is when I check the EntityX,Y,Z positions of the pivot, camera and sphere they don't change.

The pivot is still 0,0,0 and the sphere is still 1,0,0 which I understand but the camera is still 0,0,-3. How is it that the camera appears to be rotating around the sphere and yet both their positions remain the same?


big10p(Posted 2007) [#2]
You need to specify the Global param of EntityX/Y/Z, else it'll return local coords by default.


siread(Posted 2007) [#3]
Ah man. I really need to brightened up my ideas. How did i miss that?!

Thanks. :)