Hi
I am trying to implement collision detection in 3D using VB and DX8. The only help I have found so far is pretty tough to understand, also the SDK barely mentions it, could any1 help me wiv this 1 please?
Thanks
Dan
Printable View
Hi
I am trying to implement collision detection in 3D using VB and DX8. The only help I have found so far is pretty tough to understand, also the SDK barely mentions it, could any1 help me wiv this 1 please?
Thanks
Dan
Collision detection between what and what?
Z.
Since I am at the planning stage I have options:
BETWEEN
(1) The camera (view).
(2) An animated player. The camera would follow the player from behind. Also the camera would not go through walls even if the player turned so that his back faced a wall.
AND
Mainly flat surfaces although there will be a few shaped objects (such as sinks and toilets).
I realise that option 2 is a little optimistic within the time that I have available but any knowledge on either option would be greatfully appreciated.
Thanks
Dan
Bounding Box collision detection is what you want. Simply bound each object with a box, and check to see if any point of the animated character's box is within any other box. If so, fix it =).
Do some googling =).
Z.
OK So I make an imaginery box around the camera pos and then make imaginery boxes around walls and things? Sounds much quicker than what I was thinking of implement which was on a per per vertex basis.
Cheers
Dan
That is pretty much it.
Z.