- Home /
Have an object bounce off colliders instead of drift
Hey guys! I have a fireball with a rigid body and a sphere collider. When it hits a wall or rock, I would like it to bounce off the wall or object much like a laser- adapting a new angle of rotation but continuing at the same speed. Right now, it just drifts and spins (footage: watch here) Does anyone know how I can achieve the effect I'm looking for?
Answer by Labertasche3_0 · May 08, 2020 at 08:48 AM
You could create a Physics Material, set its' bouncyness to maximum and put it on the fireball.
Answer by makegoalken · May 08, 2020 at 08:11 AM
Your feedback helps me a lot, A very meaningful event, I hope everything will go well basketball legends
Answer by skagontale · Sep 25, 2020 at 12:54 PM
this is probably the worst way to do it but make a raycast to find the distance between the objects and then once they are close enough use the addForce function to soot Them away from each other
i can say again that this is great article as expected of this blog. Bookmarked this site from your friend soap2day