Hi
I have a simple door model which I want to fall onto a terrain below and perform realistic physics based collision. The problem is that it passes through the terrain without any collision. Here is the code :-
var earthgravity[3] = { 0,0, -100 };
action physics_test()
{
while(!me) { wait(1) ; }
wait(-5);
phent_settype( me, PH_RIGID , PH_POLY );
phent_setmass(my, 15 , PH_POLY);
ph_setgravity( earthgravity );
}
Any ideas why it would not collide with the terrain ?
Thanks a lot.
regards
zazang