Physics script help (baseball system)

For that you would have to cast a ray from the baseball to its Look Vector and once the ray hits something , get the reflection of the ray using the formula : r = d - 2(d ⋅ n)nand apply the velocity of the BodyVelocity as the reflection.

For reference you can use : How to reflect rays on hit

Hope this helps you

EDIT : Tried to make sure it works kinda similar to the way you want , got this :slight_smile: https://gyazo.com/5ba52aa07c29a98879fb56e8b558b32d

1 Like