Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,359 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem while starting with physics #16611
09/08/03 04:44
09/08/03 04:44
Joined: Aug 2003
Posts: 183
BionicHero Offline OP
Member
BionicHero  Offline OP
Member

Joined: Aug 2003
Posts: 183
Hi everybody!
I finally started messing around with the physics engine but somehow it doesn't work. I set the global gravity according to the manual and attach this to some map entities that I placed above each other with some minor changes in rotation and position:

ACTION box {
phent_settype(my,PH_RIGID,PH_BOX);//register entity with physics
phent_setdamping(my,50,50);//set physics damping
phent_setfriction(my,0);
phent_setmass(my,10,PH_BOX);//set box to 10 kg weight
phent_setgroup(my,2);
phent_setelasticity (my,50,25);//just playing around
}

The boxes fall a short time and then all boxes except for the lowest fall into the lowest box and into each other. And then their position gets a bit higher and they fall and rise and fall and rise and fall and... You get the idea... Could somebody please tell me what I'm missing?

Re: Problem while starting with physics [Re: BionicHero] #16612
09/08/03 04:49
09/08/03 04:49
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
you shouldn't use phent_setgroup in this example! entities within the same group don't collide with each other!

Re: Problem while starting with physics [Re: ventilator] #16613
09/08/03 05:39
09/08/03 05:39
Joined: Aug 2003
Posts: 183
BionicHero Offline OP
Member
BionicHero  Offline OP
Member

Joined: Aug 2003
Posts: 183
Ooops... I knew it had to be something simple... Thanks!


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1