oldx# = object position x(10)
oldy# = object position y(10)
oldz# = object position z(10)
if collisionon=1
x# = object position x(10)
y# = object position y(10)
z# = object position z(10)
collide = sc_spherecast(10,oldx#,oldy#,oldz#,x#,y#,z#,object size(10),1)
if collide > 0
x# = sc_getCollisionSlideX(10)
y# = sc_getCollisionSlideY(10)
z# = sc_getCollisionSlideZ(10)
position object 10,x#,y#,z#
sc_updateObject 10
endif
endif
sc_drawObjectBounds 10
sc_updateObject 10
Not seeming to register collision with any of my buildings at all. Been looking through lots of examples and it appears correct to me(first time ever using sparky dll)....if you could point out my flaw(related to code) I would greatly appreciate it.