After changing pivot point camera still rotates around itself.

Software: Away3D 4.x

Parez, Newbie
Posted: 12 January 2012 03:13 PM   Total Posts: 11

Hi,
After updating Away3D to the newest version the changing of the camera pivotPoint doesn’t show any effect.

view.camera.pivotPoint = new Vector3D(0,500,500);
view.camera.rotationX 45

shows the same result as

view.camera.pivotPoint = new Vector3D(0,0,0);
view.camera.rotationX 45

Why is it so? Am I doing everything right?
Thanks.

   

bildakid, Newbie
Posted: 19 January 2012 05:12 PM   Total Posts: 4   [ # 1 ]

I’m having the same problem I tried to use the cameraController on a hover cam and using camera.x I was about to move but when I rotated using the panAngle and tileAngle of the camera controller my camera snapped back to it’s original position. I’m now trying to use a normal camera3D and I can move it around the sceen but I can not rotate it. I basically want a first person camera where they use the keyboad to move forward/bak left/right and use the mouse to look around, but I couldn’t do it using the hoverCam and the normal camera3D I can’t rotate? Any suggestions

   

Avatar
Baush, Sr. Member
Posted: 19 January 2012 08:34 PM   Total Posts: 135   [ # 2 ]

I have been working around this by moving my camera position on my character and then using moveBackwards and moveUp:

camera.position target.position;
camera.rotationY target.rotationY;
camera.moveBackwards(1000);
camera.moveUp(500);
camera.lookAt(target.position); 

I hope the pivotPoint gets fixed so I can remove this hack

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X