Advertisement

Lesson 10 and Collision detection

Started by April 29, 2005 02:28 PM
1 comment, last by dawidjoubert 19 years, 7 months ago
To start off im a very new to graphics coding and this project I am trying is really my first attempt at graphics. I used the code from lesson 10 to make my own 3d world and now I am trying to implement collision detection on the walls and objects in my world. My problem is i'm having a hard time finding good examples or tutorials on the subject or the ones I can find on collision detection are far adavanced to what I want to do which is just to not allow the player to move through the solid objects in the world. So anyways I would much appreciate if anyone could steer me in the right direction in the way of tutorials or code examples that have basic collision detection on walls and objects in a world.
Have you checked lesson 30
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=30


but here are some more links
http://www.cs.montana.edu/~charon/thesis/tutorials/collision.php
http://www.codesampler.com/oglsrc.htm
http://paginas.ccm.itesm.mx/~beda/rt1/rt1.html

If you have any specifiek question about collision detection or trouble with code. just drop a line
Live the life you lovelove the life you lead
Never be afraid of doing tasks you are not familiar with. Noah's Ark was built by an amateur. Professionals have built the Titanic.
You should never let your fears become the boundaries of your dreams.
Advertisement
Ray --> Plane Collision

Once you have the point on the plane with which the movement collides you need to check wether it is actualy withing the poly(triangle).

The reason i say Ray is because the camera is moving and if it moves 2 fast and ur using sphere -> plane collision it will fail
----------------------------

http://djoubert.co.uk

This topic is closed to new replies.

Advertisement