Lesson 10: Walls,
Members - Reputation: 100
Posted 11 January 2012 - 06:29 AM
Members - Reputation: 235
Posted 17 January 2012 - 01:08 PM
Google might provide few nice tutorials, perhaps add the keyword "basic" to your search as well, since this is a rather advanced topic.
If you're new to 3D graphics, It's often best to first learn and/or implement in 2D.
In this specific case, when the user attempts to move, there is a "requested movement vector".
In the "collision detection" step, you check how much of the requested movement vector it's ok to move without hitting any obstacle.
If the allowed move is only partial, a "collision response" should be calculated and added to the allowed move.
For example, to create slide on walls to have a more dynamic gameplay flow (think about doom )