Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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