Description: Under VC7.0 to write a demonstration of collision-ray procedures, mainly because I used for lectures, with the sky box, the ground, the protagonist, the ground is a model, through-ray collisions, so that the protagonist in the highly undulating ground walking, wasd keys to control the four characters moving. The code used for teaching purposes, the Notes detailed, clear code
File list (Check if you may need any files):
Direct3D 讲课项目-射线碰撞
..........................\Camera.cpp
..........................\Camera.h
..........................\CEnemy.cpp
..........................\CEnemy.h
..........................\CGame.cpp
..........................\CGame.h
..........................\Direct3D 讲课项目.exe
..........................\Direct3D 讲课项目.ncb
..........................\Direct3D 讲课项目.sln
..........................\Direct3D 讲课项目.vcproj
..........................\font.cpp
..........................\font.h
..........................\input.cpp
..........................\input.h
..........................\main.h
..........................\map.tga
..........................\mesh
..........................\....\hero.X
..........................\....\terrain.X
..........................\....\tree.X
..........................\Mesh.cpp
..........................\Mesh.h
..........................\MyD3D.cpp
..........................\MyD3D.h
..........................\NP134_01.tga
..........................\NP134_02.tga
..........................\SkinMesh.cpp
..........................\SkinMesh.h
..........................\SkyBox.cpp
..........................\SkyBox.h
..........................\texture
..........................\.......\skybox1_posz.jpg
..........................\windows.cpp
..........................\yangshu01.tga