On Jan 4, 2007, at 9:48 AM, [EMAIL PROTECTED] wrote:
Actually, this is more of what I wanted: The user can move the camera
around my object in a circle but it always views in the same
direction. I
want the camera to always be facing the object which happens to be
at the
origin. The radius of the circle is 750.
This is the code for the camera movement:
Zangle=Zangle+.1
Rb3DSpace1.Camera.Position.X=Rb3DSpace1.Camera.Position.X//this
line
is not strictly necessary buy I keep it here for consistency
Rb3DSpace1.Camera.Position.Y=(750*(Sin(Zangle)))
Rb3DSpace1.Camera.Position.Z=(750*(Cos(Zangle)))
After that I want the camera to point towards the origin.
Add these lines and this will point the camera at the origin.
Rb3DSpace1.Camera.Orientation = new Quaternion
Rb3DSpace1.Camera.Pitch 3.14-Zangle
If you need more details, I'd again recommend the games list as
you'll likely get quicker answers there. Also, the link that Lars
pointed you to would be quite helpful.
- David
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>