sync on : sync rate 60
`make player
make object box 1,3,3,3
ghost object on 1
make object sphere 2,2
glue object to limb 2, 1, 0
`Make collide object
make object cube 3,5
position object 3, 0, 0, 20
set global collision on
do
`controls
if upkey() = 1 then move object 2, 0.1
if downkey() = 1 then move object 2, -0.1
if leftkey() = 1 then move object 1, 0.1
if rightkey() = 1 then move object 1, -0.1
`position camera
position camera -50, 0, 20
point camera 0, 0, 20
`check for collision
if object collision(2,0) > 0 then text 5,5,"Collision"
sync
loop
This test shows us that the collision is indeed messed up when gluing objects to limbs.
However, there is an alternative:
sync on : sync rate 60
`make player
make object box 1,3,3,3
ghost object on 1
make object sphere 2,2
`Make collide object
make object cube 3,5
position object 3, 0, 0, 20
set global collision on
do
`controls
if leftkey() = 1 then move object 1, 0.1
if rightkey() = 1 then move object 1, -0.1
`position camera
position camera -50, 0, 20
point camera 0, 0, 20
`position on limb
position object 2, limb position x(1, 0), limb position y(1, 0), limb position z(1, 0)
`check for collision
if object collision(2,3) > 0 then text 5,5,"Collision"
sync
loop
By positioning the object to the limb of the "player", the collision is not messed up and works normal.
So it's not you...