Without using a pre-built physics engine, how can I implement 3-D collision detection from scratch?
Posted
by
Andy Harglesis
on Game Development
See other posts from Game Development
or by Andy Harglesis
Published on 2014-06-11T20:54:52Z
Indexed on
2014/06/11
21:42 UTC
Read the original article
Hit count: 189
I want to tackle some basic 3-D collision detection and was wondering how engines handle this and give you a pretty interface and make it so easy ... I want to do it all myself, however.
2-D collision detection is extremely simple and can be done multiple ways that even beginner programmers could think up:
1.When the pixels touch;
2.when a rectangle range is exceeded;
3.when a pixel object is detected near another one in a pixel-based rendering engine.
But 3-D is different with one dimension, but complex in many more so ... what are the general, basic understanding/examples on how 3-D collision detection can be implemented?
Think two shaded, OpenGL cubes that are moved next to each other with a simple OpenGL rendering context and keyboard events.
© Game Development or respective owner