Mayor Payn, math collision is easy, here's a small function that checks for collision with a box:
sync on : sync rate 0
make object cube 1,5
make object cube 2,10
make object cube 3,12
make object cube 4,18
position object 1, 0,0,0
position object 2, 50,0,50
position object 3, 100,0,100
position object 4, 150,0,150
point object 1, 50,0,50
do
text 10,15,str$(screen fps())
x=object position x(1)
y=object position y(1)
z=object position z(1)
position camera x,20,z
point camera x,y,z
if upkey()=1 then move object 1, 1
rem check collision for all objects
for a=2 to 4
if check_box_collision(1,a,x,y,z)=1 then text 50,50,"WOW!"
next a
sync
loop
function check_box_collision(object_one,object_two,x,y,z)
if x+(object size x(object_one)/2)=>object position x(object_two)-(object size x(object_two)/2)
if x-(object size x(object_one)/2)=<object position x(object_two)+(object size x(object_two)/2)
if y+(object size y(object_one)/2)=>object position y(object_two)-(object size y(object_two)/2)
if y-(object size y(object_one)/2)=<object position y(object_two)+(object size y(object_two)/2)
if z+(object size z(object_one)/2)=>object position z(object_two)-(object size z(object_two)/2)
if z-(object size z(object_one)/2)=<object position z(object_two)+(object size z(object_two)/2)
exitfunction 1
endif
endif
endif
endif
endif
endif
endfunction 0
Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb"