and just in case anyone wants to know how i did it, its pretty simple,
here is the function to add other objects to collision other then the player, this is for sparkys plugin
function object8(num)
rem move all the little spheres towards the player and slide them
oldx# = object position x(8)
oldy# = object position y(8)
oldz# = object position z(8)
point object 8,object position x(2),object position y(2),object position z(2)
move object 8,0.5
x# = object position x(8)
y# = object position y(8)
z# = object position z(8)
rem little spheres collide with all (0)
collide = sc_sphereSlide(1,oldx#,oldy#,oldz#,x#,y#,z#,littleRadius#,8)
if collide>0
position object 8,sc_getCollisionSlideX(),sc_getCollisionSlideY(),sc_getCollisionSlideZ()
endif
sc_updateObject 8
rem show/hide the extra spheres
if returnkey()=1 and rtimer<timer()
rtimer = timer()+300
hide = 1-hide
if hide = 1
hide object 8
else
show object 8
endif
endif
endfunction
I also did the same thing for perfect camera collision for 3rd person view collision in sparkys dll
function camera(num)
rem move all the little spheres towards the player and slide them
oldx# = camera position x(0)
oldy# = camera position y(0)
oldz# = camera position z(0)
move camera 0,-0.2
x# = camera position x(0)
y# = camera position y(0)
z# = camera position z(0)
rem little spheres collide with all (0)
collide = sc_sphereSlide(1,oldx#,oldy#,oldz#,x#,y#,z#,littleRadius#,0)
if collide>0
position camera 0,sc_getCollisionSlideX(),sc_getCollisionSlideY(),sc_getCollisionSlideZ()
endif
endfunction
just put camera(num) in your main loop with the third person controlls, as in camera follow object, then you will have perfect collision for your camera
dweeb