I'm trying to apply basic physics to simple objects such as barrels and things you can tip over/slide around.
Curently when using a barrel object I can make the object slide around tip over, but when it tips over it doesn't stop (even with friction) and continues to flip over and act in a very strange manner.
This is the code I am using:
action movearound
{
var earthgravity[3] = 0,0, -2000;
ph_setgravity( earthgravity );
phent_settype (my,ph_rigid,0);
phent_setfriction(my,300); phent_setmass (my,9000,PH_POLY);
}
Can anyone make any suggestions on how to get something that behaves normally? thanks