ThePentiumGuy Posted April 21, 2004 Posted April 21, 2004 hey does anyone know how to use the Mesh.Intersect command? it says something about rays and such... pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Kavan Posted April 21, 2004 Posted April 21, 2004 You have to provide it ray in the model space. This means that you need a point in space and a direction. If you have this data in world space then you'll have to transform it to model space by multiplying by inverse of world matrix. It'll return true or false telling you if the ray hit the model. Some overloads also give you further information about which face exactly was hit and so on... Quote
ThePentiumGuy Posted April 21, 2004 Author Posted April 21, 2004 wow... there's more to this than i thought :O - im gonna go look into this thanks kavan (hey btw, are you the same guy who made the ArtificialHeart game engine???, cuz i know ive seen you before), pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Kavan Posted April 21, 2004 Posted April 21, 2004 Yes I'm the same guy. Where have you heard about Artificial Heart? Quote
ThePentiumGuy Posted April 21, 2004 Author Posted April 21, 2004 google :p (..."message too short"... i had to type this line in lol) Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.