- Home /
Bouncing off after collision
I'm currently trying to make a top down arcade shooter game where you are on a flat arena and you have to navigate around and shoot the enemy while taking cover around objects but i want to make some objects static and some physics based. When the player object and the other cover objects collide, the player object goes flying off. I fixed this partially by making the mass of the player object insanely high so the player just pushes the physics based blocks over, but when the player collides with the static blocks the player goes flying off as if rebounding.
Have you checked the bounciness of the physics materials you are using on the player and blocks? The static blocks do not need a Rigidbody and should be set to static.
i ended up ditching the static blocks and just locking the Y-Axis and all the rotation on it so ins$$anonymous$$d of static cover it's moving cover and it's easier to create.
I also added barriers around the arena, but they seem to bounce the player. Damn.
Are you using 2D or 3D? (Physics2D $$anonymous$$aterial or Physic $$anonymous$$aterial)
I don't know what settings you are currently using, but for the Barrier's physic material try setting values - Bounciness: 0 and Bounce Combine: $$anonymous$$inimum
Your answer
Follow this Question
Related Questions
How to show 'contact frame' of Rigidbody2D collision? 0 Answers
Ball falls through the floor... why? 1 Answer
Why does my bullet only bounce horizontally or vertically, even when it's fired at an angle 1 Answer
Collision.impulse.Set doesn't change the impulse's values 0 Answers
Animator overriding collisions? 0 Answers