2 registered members (AndrewAMD, rki),
390
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Deleting PhysX Objects
#406331
08/17/12 12:30
08/17/12 12:30
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
OP
Expert
|
OP
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
Hey, I cannot delete PhysX objects. If I have a function that creates an object with Raycasting wheels, and shortly after delete it, the graphical representation is gone, but in the PhysX Debugger everything stays and other objects still react on it. If I call the function again, odd things happen. As if the same memory part is used again. If I manually overwrite the before deleted memory with zeros, at least this works. Also, calling pXcon_remove on a PH_WHEEL makes the function crash. Any ideas? Please? I am seriously wondering if anybody really used PhysX in GS, when I see those problems...
|
|
|
Re: Deleting PhysX Objects
[Re: 3run]
#406340
08/17/12 15:16
08/17/12 15:16
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
OP
Expert
|
OP
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
pXent_settype(ent, 0, 0) does nothing.
(I also checked the PhysX Debugger)
Furthermore, the event physX_ent_remove should do that.
However, pXent_enable works for me.
On the other hand, the PhysX implementation really sucks, sorry, but I even have to clean up the level entities myself with pXent_enable one by one...
(thanks for your help ;))
Last edited by Rei_Ayanami; 08/17/12 15:17.
|
|
|
Re: Deleting PhysX Objects
[Re: Rei_Ayanami]
#406341
08/17/12 15:30
08/17/12 15:30
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
the PhysX implementation really sucks, sorry, but I even have to clean up the level entities myself with pXent_enable one by one... It turns out that I have to use the ackphysx plugin again very soon for a customer, so I will change that, so that this part will be better.
|
|
|
Re: Deleting PhysX Objects
[Re: rojart]
#406368
08/18/12 08:30
08/18/12 08:30
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Sorry for a delay, here is the demo for you all to try: Download link I've tried it with the latest beta version, still sucks.
|
|
|
|