Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbPhyWakeUpRigidBody SYNTAX Bug ?

Author
Message
silken
20
Years of Service
User Offline
Joined: 13th May 2004
Location:
Posted: 1st Jun 2009 18:36 Edited at: 1st Jun 2009 18:40
Hi,

I see in documentation the command :

Quote: "void dbPhyWakeUpRigidBody ( int iID );"



but in the DarkPhysic.h the syntax must be

Quote: "void dbPhyWakeUpRigidBody ( int iID , float fThreshold )"


Can you explain it? Becaus I sleep Objet and i juste want to wake up it.. so i dont know what is "fThreshold" for this syntax

Thx

Ps: sorry Can you move this topic in Darkphysic forum?
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 1st Jun 2009 20:16 Edited at: 1st Jun 2009 20:18
The physx sdk (on which dark physics is built) states that a new parameter was added in 2.8.1, likely the source of this changes:
Quote: "virtual void NxActor::wakeUp ( NxReal wakeCounterValue = NX_SLEEP_INTERVAL ) [pure virtual]

Wakes up the actor if it is sleeping.

The wakeCounterValue determines how long until the body is put to sleep, a value of zero means that the body is sleeping. wakeUp(0) is equivalent to NxActor::putToSleep().

Parameters:
[in] wakeCounterValue New sleep counter value. Range: [0,inf]

"

NxReal is a typedeffed float, ergo i think they are the same. So I would say use a nice high number. But only a guess. The Dark Physics board wioll no, but I am not mod so I cant move this.

The actor must be dynamic.
EDIT: or try using NX_SLEEP_INTERVAL, this may well work, and is the default value in PhysX.

Login to post a reply

Server time is: 2024-11-25 10:17:43
Your offset time is: 2024-11-25 10:17:43