I have made a small terrain using TE.d. It's small rocky landscape.
I'll show you nthe code, so that you can see what I try to accomplish
sync on
sync rate 40
load object "mymap.x",1
set object collision to polygons 1
rem the player object
make object cube 2,1
set object collision to polygons 2
position object 1,0,0,0
position camera 0,0,100,0
do
position object 2, camera position x(0),camera position y(0),camera position z(0)
control camera using arrowkeys 0,2,2
if KEYSTATE(17) then pitch camera up 0,15
if KEYSTATE(31) then pitch camera down 0,15
sync
LOOP
Object 1 is the terrain, and object 2 is the player object set to follow the camera as you can see in the first line in the application loop.
I have set the both objects to polygon collison, but they do not detect collisions at all (I can 'walk' through the terrain)
When I tried using automatic camera collision it worked, the camera collided nicely to the terrain. But now as you see I want the object themselves to collide, but they don't detect it? Anything else I have to do to make this work?
<a href="http://www.memblockgames.com">www.memblockgames.com</a>