Hi,
I am trying to find a simple way to move (with c_move) a group of objects that must have always the same distance between them:
No big deal with the movement:
Code:
c_move(object1,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object2,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object3,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object4,nullvector,vector(20*mouse_force.y,0,0),glide);
c_move(object5,nullvector,vector(20*mouse_force.y,0,0),glide);
The problem is i need collision detection and limiting directly the object´s x coordinate movement its harder and i will loose the collision.
Also, when the object1 or object5 collides with the walls, all the objects must stop and stay always at same distance between them.
So, which will be a good way to do this?
Thanks in advance.