
July 31st, 2003, 03:01 PM
|
|
Junior Member
|
|
Join Date: Feb 2003
Location: England
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Direct X - Orientations
Hi Devshed,
I was wondering if anyone would know what I need to move my viewport orientation up and down. For example, I have this:
Code:
FR_Camera.SetOrientation FR_Camera, -0.02, 0, Cos5Deg, 0, 1, 0
This code will change the orientation of the camera in that it rotates left, using 0.02 makes it go right. I already have this:
Code:
FR_Camera.SetPosition FR_Camera, 0, 1, 0
Which rotates the camera upwards. However, if you rotate the camera left/right, it adds a slight curve to the rotation, until when you reach 90 degrees in either direction it will perform barrel rolls. I need to find a way to neutralise this curve that is created everytime the orientation differs.
Any help would be greatly appreciated.
Thank you!
|