Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

D3DRM : Single Step Move & GetOrientation

2 views
Skip to first unread message

Martyn Westwood

unread,
Aug 28, 1998, 3:00:00 AM8/28/98
to
I'm working on a first-person "walkabout" app. I use the left and
right keys to rotate the camera frame and forward and back keys to
step forwards and backwards.

case VK_UP: // forward
{
D3DVECTOR d3dv;
camera->GetPosition(scene, &d3dv);

camera->SetPosition(scene,
D3DVALUE(0.0), D3DVALUE(0.0),
d3dv.z + D3DVALUE(0.25));
}

Of course, when the camera frame is moved through the centre
of the scene and rotated through 180 degrees, forward effectively
drags the viewer backwards and vice versa.
The function I think I need to use is GetOrientation. However
I can't work out what value it gives me and how to use it. Any help
would be gratefully appreciated!
Please email as well as post replies.

Martyn Westwood
Reply To: 10137...@compuserve.com

0 new messages