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,528 guests, and 5 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
ph_autodisable() ??? #37702
12/14/04 01:27
12/14/04 01:27
Joined: Oct 2003
Posts: 66
Berlin
T
Tester Offline OP
Junior Member
Tester  Offline OP
Junior Member
T

Joined: Oct 2003
Posts: 66
Berlin
I have seen in the update text to version 6.3 that there is a new parameter to
adjusts time-out values for automatically disabling physics entities. I tried
a lot to set the time-out value, but got every time an error message.
Can somebody tell me how to use this parameter or is it enabled automaticly ?

Re: ph_autodisable() ??? [Re: Tester] #37703
12/14/04 16:43
12/14/04 16:43
Joined: Oct 2003
Posts: 66
Berlin
T
Tester Offline OP
Junior Member
Tester  Offline OP
Junior Member
T

Joined: Oct 2003
Posts: 66
Berlin
Even Conitec should have an answer what a command it is :

Quote:

ph_autodisable()
Adjusts time-out values for automatically disabling physics entities.
Remarks:
When a physics entity has been inactive, i.e. moving only a very small
amount for a number of frames, it will be disabled automatically. When
changes are made to this physics entity by calling one of the phent_xxx
functions, or if an active physics entity collides with the disabled
one it will be enabled automatically. Please note that non-physics
entities will need to use c_move to corectly enable auto-disabled
entities. Just placing an entity using my.x will not cause the entity
to be re-enabled.




Re: ph_autodisable() ??? [Re: Tester] #37704
12/15/04 06:19
12/15/04 06:19
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
ph_setautodisable(lmaxlin,lmaxang,lminframes, lmintime)
with
lmaxlin: maximum linear motion per frame that will be considered as resting
lmaxang: maximum angular motion per frame that will be considered resting
lminframes: minimum number of frames resting before entity gets disabled
lmintime: minimum time in secs before resting entity gets disabled

Default: ph_SetAutoDisable(0.01, 0.008, 10, 0.1);

When do you get error messages ?


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