Hi everyone,
I'm attempting to create a cylinder-shaped barrel that I want to roll around and use physics. I know not to use ph_cylinder, so here is the code that I have set up:
Code:
action smallbarrel
{
while (player == null) {wait (1);}
phent_settype(my, ph_rigid, ph_poly);
phent_setmass(my, 0.5, ph_sphere);
phent_setfriction(my, 80);
phent_setelasticity(my, 10, 50);
}
Unfortunately, with the code as it is now, the barrel sinks through the floor, even when gravity is set to a low value. This hasn't happened with the other physics objects I've made, so I'm wondering if it could have to do with the model I'm using.
I'm using ph_poly for collision detection because when I use ph_box, the invisible box is way too large for the barrel, and the barrel appears to float in the air.
My questions are:
1. Is there a way to prevent the entity from sinking through the ground while using ph_poly? What could be causing this?
2. If I have to use ph_box (though I'd prefer not to), is there a way to shrink the box's boundries?
Thanks!
