As my game contains balls I thought that 'set object radius' was a godsend, but I can`t get it to work.
In this example you can make the sphere bigger or smaller using the up and down keys, no matter what you set the object radius to it makes no difference to when it collides with the cube, also the 'object collision radius()' seems to get a number linked to the object scale rather than anything else.
Changing the initial size of the sphere, its position, the scaling, or the radius all seem to have no effect on the collision detection.
Is this just me, am I doing something wrong or is this a bug?
` Collision radius
sync on
backdrop on
autocam off
position camera 0,0,0
move camera -200
make object cube 1,20
position object 1,50,0,0
set object collision to boxes 1
set object collision on 1
make object sphere 23,18
position object 23,10,20,30
set object collision on 23
set object collision to spheres 23
do
if upkey() then x=x+10 : wait 10
if downkey() then x=x-10 : wait 10
bs = x
scale object 23,bs,bs,bs
set object radius 23,1000
text 0,0, "scale = " + str$(bs)
text 0,20, " Radius of 23: " + str$(object collision radius(23))
hit = object collision(23,0)
text 0,40, "Object 23 hit: " + str$(hit)
sync
loop