collisions with .x meshes

Blitz3D Forums/Blitz3D Programming/collisions with .x meshes

Faz(Posted 2004) [#1]
I have created a mesh (straight road with walls at the sides) all textured and excellent looking, but how do I make the object in front of the camera, (my character)collide with the walls... Arghhhhh!!!!!! No problems tracking the player object with the camera, (it looks down and slightly behind, from slightly above the player object, so the width of the road fills the screen.)

Can someone help... I am trying to write a 3D version of
'Highway Encounter' an old spectrum/amstrad game.

The game logic is quite simple as is the A.I., its just this damn collsion detection business.

Thanks, whoever helps me!


jhocking(Posted 2004) [#2]
First set separate EntityTypes for player and level. Use EntityRadius to set a collision sphere for the player. Then use the Collisions command to establish sphere to polygon collision detection of player to level. Finally, call UpdateWorld every frame for collision detection to happen.