Rocket projectile bounce off walls at a certain angle

zented

Member
Hi,

My rocket projectiles bounce off walls when the character is against the surface and shoot at a certain angle.
On the projectile, the collision mode is set to 'Collide'.
Changing the rigidbody's collision detection mode doesn't seem to help.

Any idea what could cause this?
 
Projectiles reflecting off walls is an issue we've seen before with magic projectiles - can you try reproducing this in a fresh demo scene please? When the fire point intersects/passes the wall collider, it causes the firing direction to be the opposite of what it looks like it should be, although this isn't technically a bug. A workaround would be to ensure that the weapon's fire point can't intersect with the wall collider, e.g. by moving the fire point further back or slightly increasing the width of the character's CapsuleCollider.
 
Thanks for the quick reply.

I solved it by moving the fire point further back like you said.
To reproduce it in the 'FirstPersonControllerDemo' scene, go in the shootable room, pick up the rocket launcher and place the character more or less like in the first screen below (don't mind the pink, I did it quickly in URP).
 

Attachments

  • Before Shooting.jpg
    Before Shooting.jpg
    118.5 KB · Views: 18
  • After Shooting.jpg
    After Shooting.jpg
    97.6 KB · Views: 18
Last edited:
Top