Hi guys,

I am making a 3d brick game that has a catcher and a ball entity, the catcher object has a special skill that serve as a magnet and would attached the ball at the top when collide.

my problem is, how can i move both entity at the same time without setting the ball's flag to PASSABLE. because i cant move the catcher when there is object attached to it. not unless i will set the ball object to PASSABLE.
i am setting the ball's coordinate to the catcher coordinate.

here is my code for setting the ball always in the top of the paddle:

while(condition is true)
{
......
vec_set(player.x,vector(ent_catcher.x+100,ent_catcher.y,ent_catcher.z));
......
wait(1);
}

i suppose the catcher will move and the ball will always at the top of the catcher but whenever the ball is in the top the catcher wont move.

is there any other way to move both objects when attached?


please advice...

thanks