Original Post
You will have to excuse me for leaving most of the details on my blog. Click here to view the associated blog post that has a bit more detail and a downloadable example. What I basically have is this situation: Update: IGNORE THE DOT - it is not a joint or anything. These are just boxes. The green ones are static. Sorry if this confused anyone.
I have a player "standing" on a dynamic physics object. Because of the way I have implemented player movement, the player "snaps" to the surface of the object. As such (in this penetration-separation based physics engine - specifically Farseer), no force gets applied to object being stood on. I have a half-working solution that involves applying the force of the player's weight (mass multiplied by gravity) to the object it is standing on. This is obviously incorrect. I suspect that what I need to do involves transferring momentum somehow. So my question is: what do I need to do to make this work realistically? Can it be done just by applying forces to the object being stood on? How do I calculate those forces? [Edited by - Andrew Russell on May 12, 2009 1:37:36 AM]
I have a player "standing" on a dynamic physics object. Because of the way I have implemented player movement, the player "snaps" to the surface of the object. As such (in this penetration-separation based physics engine - specifically Farseer), no force gets applied to object being stood on. I have a half-working solution that involves applying the force of the player's weight (mass multiplied by gravity) to the object it is standing on. This is obviously incorrect. I suspect that what I need to do involves transferring momentum somehow. So my question is: what do I need to do to make this work realistically? Can it be done just by applying forces to the object being stood on? How do I calculate those forces? [Edited by - Andrew Russell on May 12, 2009 1:37:36 AM]