B
Bhreno
Guest
In my current project, there are balls that randomly come out of the map (without gravity) and on the way they can collide with 3 different things:
> solid blocks where they hit and deflect.
> breakable blocks, where they destroy and deflect.
> other balls, they hit and deflect each other.
I would like to make sure that when the balls collide, the one with the highest speed would end up acting at the speed and direction of the other.
Example: Two boys play ball and each is kicking one. They kick both in the same direction. One is with speed force 10, the other with force 20. The higher force will logically "push" and change the direction of the other when both collide. But I can't do it in GMS. The Bounce functions I try to use always end up just "reversing the course" after the crash, rather than the actual physics effect.
can you help me?
> solid blocks where they hit and deflect.
> breakable blocks, where they destroy and deflect.
> other balls, they hit and deflect each other.
I would like to make sure that when the balls collide, the one with the highest speed would end up acting at the speed and direction of the other.
Example: Two boys play ball and each is kicking one. They kick both in the same direction. One is with speed force 10, the other with force 20. The higher force will logically "push" and change the direction of the other when both collide. But I can't do it in GMS. The Bounce functions I try to use always end up just "reversing the course" after the crash, rather than the actual physics effect.
can you help me?