I have a simple rolling sphere using physics and force to rotate and move around. However, I want to bend these physic rules for slopes... picture a giant tube and a marble inside of it.
The tube innards are the "ground" and the marble can go all the around, meaning gravity should not be pulling in (0,-1,0) but instead some sort relation to where the marble and tube are touching. What I decided to call the marbles "foot" - where the tube and marble collide.
I think if I can get that foot position/rotation I can somehow alter the gravity vector based on the rotation on every update.
On a side note, I already got the camera to correctly rotate/follow so that it appears the marble is always "on the ground" or level -- so know once you get about 45 degrees up the side of the tube you stop, the slowly fall backwards.
I know I can just increase the speed or lower mass/drag to make it realistically go up the sides and do a 360, but that's not the intent.
So basically, is there an easy way to attach a plane to a rolling sphere so that its position/rotation is where the sphere collides with the tube?
-Thanks