Anonymous 10 years ago 0
This discussion was imported from CodePlex

hulahoops wrote at 2012-10-22 18:25:

The StartSpin method of the CameraController is what I am looking for to animate a rotation, but changing the position or the around point parameter doesn't seems to effect the rotation direction which seems to always be in a mouse up-down direction.  What I want is rotation around the Z axis (i.e. left-right).  My defaults are as follows:

view.CameraMode = CameraMode.Inspect;

view.CameraRotationMode = CameraRotationMode.Turntable;

view.ModelUpDirection = new Vector3D(0, 0, 1);

camera.UpDirection = new Vector3D(0, 1, 0);


Any ideas please?

objo wrote at 2012-11-02 22:43:

the StartSpin method is used when initiating a spin with touch or mouse events. The arguments are the speed of the cursor (in screen coordinates), the point on the screen (2D) to rotate around, and the point in the model (3D) to rotate around. 

Consider starting an animation on the camera properties directly if you need more control on the rotation!

hulahoops wrote at 2012-11-05 10:09:

OK, thanks