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.
>> I don't understand how to make the camera in the RB3dSpace look at the
>> Origin (0,0,0). Is there a simple way to do this?
>
> There sure is:
>
> RB3DSpace1.camera.position.z = 700 // back up so we can see the origin
>
> Here are some more 3D basics, including Joe Strout's essential 3D FAQ:
>
> http://ljensen.com/rb/3d_readme_framed.htm
>
> This FAQ contains, among other things, a routine to aim your camera at
> any particular point in space, which is something you'll probably be
> wanting soon enough...
>
> lj
> _______________________________________________
> 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>
>
_______________________________________________
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>