Skip to main content
gamedev.net
🔒 Locked

D3DXIntersect

Started by yanuart Jan 24, 2003 at 10:38 AM 2 replies 300+ views
Original Post
yanuart
yanuart
Hi, I''m using this function to check wheter my ray intersect with my mesh.. Do you think it works, cause I can never make it work ?? I mean, if I have my ray based on the world coordinate and then the mesh is still on its local coordinates right ?? Do I need to transform my ray first ?? or what ? How do I make it worked ??
Ride the thrill of your life
Play Motorama
yanuart
yanuart
How do you get m_matLocal, cause usually I use matIdentity for the local for the mesh.
Ride the thrill of your life
Play Motorama
mickey
mickey
hi yanuart,

m_matLocal just refers to the object''s current world transformation/matrix, just replaced m_matLocal with the matrix you used to to transform your object at world space,

http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,

Topic Locked

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

Sign in to reply to this topic.