Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Question Physics #272569
06/18/09 17:53
06/18/09 17:53
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
hi,

I use some (passive) physics objects (eg boxes) in my level and the question is:

when do these objects slow down my pc? when they are regestrated (mass, damping, etc.) or when they are moving/in action on the screen?

Thanks


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: Question Physics [Re: MPQ] #272570
06/18/09 18:05
06/18/09 18:05
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
whenever they start moving, also.. what do u mean by passive?

Re: Question Physics [Re: darkinferno] #272576
06/18/09 18:37
06/18/09 18:37
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
by passive i mean eg a box the player can kick off and no object which uses constraints


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: Question Physics [Re: MPQ] #272577
06/18/09 18:41
06/18/09 18:41
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
well... dont worry about physics, one you set it up correctly and you arent using too many objects onscreen, it should work perfectly until you get about 20 or more physics entities on screen... just a rough guess

Re: Question Physics [Re: darkinferno] #272596
06/18/09 20:15
06/18/09 20:15
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
ok it works quite well by using a lot of physic entities (constant fps), as long as my player doesnt touch them laugh

Thanks for your help


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: Question Physics [Re: MPQ] #272601
06/18/09 20:37
06/18/09 20:37
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
the reason you might have problems when your player touches them is because your player doesnt use physics smile non-physics objects mustnt collide with physics object

Re: Question Physics [Re: darkinferno] #272728
06/19/09 12:43
06/19/09 12:43
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Yes, they shouldn't.
If you are not using a physics player like darkinferno does, you can perform a short 360° scan round the player that adds a force to the objects.
This won't let the player touch the objects and cause realistic behaviour.

Re: Question Physics [Re: the_clown] #278405
07/13/09 15:24
07/13/09 15:24
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline
Member
Jaeger  Offline
Member
J

Joined: May 2009
Posts: 258
Chicago
Another thing, you need to use autodisable. It unregisters things that haven't moved for a certain amount of time. That way, the engine is not making unneeded calculations. You could re-enable them when the player is very close, or at any other time you need. Even though you don't realize it, physics objects sitting still are still performing tons of collisions per second. So disable the ones not in use to boost performance.

Last edited by Jaeger; 07/13/09 15:24.
Re: Question Physics [Re: Jaeger] #279681
07/18/09 18:03
07/18/09 18:03
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
thanks, iŽll try


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com

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