Posted By: Muhsin
physics stop working, why? - 05/25/10 21:25
Hi!
I just began today playing with the physic engine of gamestudio.
then I got a problem.
I tried to build a house using bricks, which all use this code:
---------------------------------------------
action box()
{
phent_settype(my,PH_RIGID,PH_BOX);
phent_setmass(my,1,PH_BOX);
phent_setfriction(my,100);
phent_setelasticity(my,1,0);
phent_setdamping(my,50,6);
ph_setgravity(vector(NULL,NULL,-800));
}
---------------------------------------------
I found out that if I stack to many bricks on each other, they lose their physics.
they still have their physics if I make the same amount of bricks around the game without them touching each other, but as soon as they touch each other, they lose their physics.
then I tried to make balls with physics touch the bricks, and the balls lost their physic too!
what can be the problem? is there some kind of limit or something? please help.
thanks!
- Muhsin Kaymak
I just began today playing with the physic engine of gamestudio.
then I got a problem.
I tried to build a house using bricks, which all use this code:
---------------------------------------------
action box()
{
phent_settype(my,PH_RIGID,PH_BOX);
phent_setmass(my,1,PH_BOX);
phent_setfriction(my,100);
phent_setelasticity(my,1,0);
phent_setdamping(my,50,6);
ph_setgravity(vector(NULL,NULL,-800));
}
---------------------------------------------
I found out that if I stack to many bricks on each other, they lose their physics.
they still have their physics if I make the same amount of bricks around the game without them touching each other, but as soon as they touch each other, they lose their physics.
then I tried to make balls with physics touch the bricks, and the balls lost their physic too!
what can be the problem? is there some kind of limit or something? please help.
thanks!
- Muhsin Kaymak