Skip to main content
gamedev.net
🔒 Locked

ViewMatrix

Started by Tagamoga Jan 21, 2003 at 5:14 AM 5 replies 250+ views
Original Post
Tagamoga
Tagamoga
Hello... It''s me again... *g* I have made a little progress ... I am moving my great super triangle around... *s* I am using Transaltion Matrices and Rotation Matrices and everything is working just fine... But now there is something like collision tests. For Example I don''t want my camera to drop beneath the x-y-plane. That mean the the z-part of my KameraVector must not be negative... But how do I find out, with only the ViewMatrix, which is the Kameravektor. Is there any function I have overlooked? Is there something similar for the Upvector and viewpoint? Taggi
Tagamoga
Tagamoga
In Other words, how Do I find out or trace the camera Position?

Taggi
Tagamoga
Tagamoga
Thanks, but how do I access the single Members of a D3DXMATRIX-object?

Taggi
Tagamoga
Tagamoga
@Anonymous Poster #1
Even in your Cameraclass you have to track your CameraPosition

@Anonymous Poster #2
Thanks, now I have got, what I need, and it is working! ~g~

Taggi

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.