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
1 registered members (TipmyPip), 18,574 guests, and 6 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
Removing everything savely #219585
08/03/08 12:57
08/03/08 12:57
Joined: May 2008
Posts: 301
Oxy Offline OP
Senior Member
Oxy  Offline OP
Senior Member

Joined: May 2008
Posts: 301
Hello,
how do I erase a physics object savely?

Do I have to just "ent_remove" them,
And what about the constraints?

phcon_remove removes them, is this nessecary when
all objects are erased?

Is there a garbage collection of "unused"physics objects, or
do they stay in the simulation?

--

I want to basically create physics objects with contraints and motors, and erase them quickly later
(they only live a few seconds), but without having to do level_load.

Last edited by Oxy; 08/03/08 12:59.
Re: Removing everything savely [Re: Oxy] #219588
08/03/08 13:52
08/03/08 13:52
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
just erase them with ent_remove. i think that it will suffice. you can check if it has been removed from calculations by pressing F11 and then looking at: phy value. if you've erased all physics entities with ent_remove then it should say 0, i think



Ubi bene, ibi Patria.
Re: Removing everything savely [Re: croman] #219601
08/03/08 15:57
08/03/08 15:57
Joined: May 2008
Posts: 301
Oxy Offline OP
Senior Member
Oxy  Offline OP
Senior Member

Joined: May 2008
Posts: 301
ok, thanks.

Its mainly to be shure that the objects get erased,
and dont cause memory leaks, when creating and destroying
thats stuff thousands of times.


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