Gamestudio Links
Zorro Links
Newest Posts
A3 projects
by Yopachi. 09/28/26 17:04
Purchase A8 full licence version
by ukgamer. 09/28/26 10:17
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (ukgamer, Yopachi, ratz, AndrewAMD), 3,023 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
KelleyAbbey, Yopachi, Knull, Opus, Jubilee
19242 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
phent_enable or pent_settype #209913
06/06/08 15:23
06/06/08 15:23
Joined: Jan 2002
Posts: 692
berlin
MB Offline OP
User
MB  Offline OP
User

Joined: Jan 2002
Posts: 692
berlin
to save resources I thought of switching on/off the physcis attribute of an entity.
Given that the velocioty of the object is below a certain margin I would decide to "mute" the object; when it would behit or touchend by some entity (via IMPACT) I would switch it on agaon.

But what is better in terms of performance:
To register / deregister an entity
or to use phent_enable instead?



Last edited by MB; 06/06/08 15:24.
Re: phent_enable or pent_settype [Re: MB] #209917
06/06/08 15:34
06/06/08 15:34
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
you don't have to do this yourself. there already is a built-in sleep feature. -> ph_setautodisable()

Re: phent_enable or pent_settype [Re: ventilator] #209918
06/06/08 15:41
06/06/08 15:41
Joined: Jan 2002
Posts: 692
berlin
MB Offline OP
User
MB  Offline OP
User

Joined: Jan 2002
Posts: 692
berlin
thanks Ventilator


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