Page 1 of 1
Using surface velocity to move bodies
Posted: Tue Apr 28, 2009 7:42 pm
by Night Elf
As suggested in this topic:
http://www.slembcke.net/forums/viewtopi ... form#p1532, I'm trying to move a body through the surface_v property. I've tried assigning a value to the surface_v of the ground and also to the surface_v of the body's shape, but none of them produce any results. Can you help me make this work?
Re: Using surface velocity to move bodies
Posted: Wed Apr 29, 2009 7:48 am
by slembcke
Have you set any friction? Surface velocities only affect friction calculations.
Re: Using surface velocity to move bodies
Posted: Wed Apr 29, 2009 2:29 pm
by Night Elf
Ah! So, both bodies need to have at least some friction. Thank you very much, it's working now!
Re: Using surface velocity to move bodies
Posted: Wed Apr 29, 2009 3:36 pm
by slembcke
Yep. I chose to multiply the friction and elasticity values together to get the final value used in the calculations. It seems to make the most sense to do it that way to me, but unfortunately I don't think that there is a "correct" way to do it.