Hi,
I'm in the process of converting my collision system to Sparkys and am trying to get my head round the new commands.
I'm looking at replacing my 'intersect object' commands with sc_intersectObject as a means of stopping my npcs from dropping off ledges but keep hitting the same error and I'm not sure where its coming from:
Quote: "Could not find function'?intersectObjectOld@@YAKHMMMMMM@Z' in 6:SC_Collision.dll"
I've set up a small piece of test code outside my program and am getting the same problem:
x=0:y=0:z=0
make object cube 1,5
set object collision to boxes 1
sc_setupobject 1,0,2
position object 1,x,y,z
sc_updateobject 1
do
vdist=sc_intersectobject(0,x,y+2000,z,x,y-2000,z)`sparkys intersect
`vdist=intersect object (1,x,y+2000,z,x,y-2000,z)`DBP intersect
set cursor 0,0
print vdist
loop
end
Any help would be appreciated.