Keeping momentum of vehicle after hitting object?

  1. What do you want to achieve?
    I would like to have my vehicle go straight through the glass and continue going forward

  2. What is the issue?
    When the car collides with the glass the car loses all speed

  3. What solutions have you tried so far?
    I have tried making the car not collide with the glass but it does not turn out the way I would like

Anyone have any solutions to making the car keep it’s momentum after a collision?

How is the glass created?

From what I’m seeing, it seems to start out as a gigantic block. Then once touched, shatters. This is definitely a problem because if the block is thick, or even anchored in this case, the vehicle’s momentum will be effected.

I have an idea to propose that maybe you could try out:

  • Play with the collision between the part and the vehicle itself. In this case, the part would stay anchored, and whenever the vehicle touches the part, it will keep going at its same momentum because it does not collide with the part in anyway.

This is under the PhysicsService API though, so I highly recommend researching into it before conquering this experiment.

(Here’s another something to look into to steer you in the right direction: CreateCollisionGroup.)

1 Like

Thanks for the reply. However, I already tried that.

No worries though I made a hitbox to detect whether the car will be colliding with glass.

1 Like