- Home /
Make a sphere rolling along a roulette (curved surface) stop at predetermined position?
I have a sphere (as a rigid body using gravity) rolling along a rotating roulette. I need to make it stop at a predetermined slot. say slot '25' .
I have the final position vector eg
var finalPos:Vector3 = Vector3(10,0,2)
this is where the ball should stop rolling. And I do want to make the transition look realistic.
The methods I have tried so far include: removing 'Use gravity' and applying isKinematic ticked true; then i tried 'slerp'ing the ball towards the target. even rotations (rolling) i dont have issues in simulating. Where i fall short is, since my roulette is a 3d curved surface, which is something like the inside of a wash basin. When the sphere moves through 'slerping' it doesnt feel realistic. It passes through the surface.
On the contrary , when I use gravity the sphere moves along the roulette surface just fine, but I want the sphere to stop exactly where i want it to.
Any help is appreciated.
Hi. i have the exact same problem to solve. Did you get any solution? Thanks in advace.
Your answer
![](https://koobas.hobune.stream/wayback/20220613102253im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
3d Water Simulator 1 Answer
Help with orbits 1 Answer
Handling Large number of Active Rigidbody Evaluations 2 Answers