Bouncy material and walls

Hi,

I am writing a game with mechanics quite similar to pool: you hit a white ball with the cue and it can hit other balls or bounce on walls. Concept:

I am using the bouncy material from the standard Physics assets on the balls. The expected trajectory is illustrated by the black lines (actually rendered in-game with a process based on ray casting). The blue and brown sections are obstacles/walls that the balls can collide with.

However, after colliding with the brown surface, the white ball does not follow the trajectory illustrated by the secondary black line. The actual trajectory is closer to the surface normal.

I’m not sure what I’m doing wrong. Can I somehow configure the bouncy material to reflect correctly off an obstacle?

I’ve actually played with this a lot and I have never been able to make the built in physics give me 100% repeatable predictable results. If I need a certain exit trajectory or path I tend to detect the collisions and then programatically tween the moving object myself.

It’s sort of a pain but it’s 100% reliable if you require the object to exit the collision in a specific manner. If you’re able to tame physX and make this work I would certainly be interested.