Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, 1 invisible), 1,404 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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