Rolling sphere "foot" on ground?

 0 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 more ▼ asked Aug 14 '10 at 11:14 PM Wskid 1 ● 1 ● 1 ● 1 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users

 0 What you could do is turn the gravity to zero and apply a downward force on the sphere. Would that work? more ▼ answered Dec 04 '10 at 05:34 PM elbon96 87 ● 6 ● 6 ● 12 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users
 0 Can you make this question more clear? Is the plane supposed to move as the marble rolls in the tube, or can the plane be stationary while the tube rolls around it? When I picture your gravity problem, I picture having global -y be "down" to the player, and the marble will always be at the "bottom" of the tube in this regard. Instead of letting the marble roll "up" the walls of the tube, just let the tube roll around the marble. more ▼ answered Nov 05 '10 at 01:54 AM Charles Van Norman 42 ● 1 ● 1 ● 2 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users

By Email:

Topics:

x459
x197
x168

asked: Aug 14 '10 at 11:14 PM

Seen: 1138 times

Last Updated: Aug 14 '10 at 11:14 PM