Maintain velocity after collision

Hi there, im stuck with the following:

I have a ball that moves at a set velocity. When it collides with Ball B, it destroys ball B. The problem is that once it collides and destroys the other ball, i want it to maintain the same speed but it slows down drastically after colliding with another ball.

Is there a way to keep the ball going at the same speed and not slow down even after colliding and destroying other balls?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Remove the Collide behavior and the balls won't affect each other's speeds.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • breubanbreuban Member Posts: 13
    But both balls need to collide with each other and not get destroyed in certain situations.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    But both balls need to collide with each other and not get destroyed in certain situations.
    What does that mean? If they need to detect a collision, then use a collision rule condition but not a Collide behavior. If they need to actually collide and bounce off of each other, then you'll need to use a Collide behavior and store their velocity and angle of movement right when they collide and then force them to move in that direction and at that speed once again. Or, you could fake it and have them wobble or animate an effect but keep moving (again without a Collide behavior).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.