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 Physics & Dark A.I. & Dark Dynamix / Removing A StaticRigidBody Mesh in Dark PhysX

Author
Message
Christopher Reeves
18
Years of Service
User Offline
Joined: 20th Dec 2005
Location: Texas, USA
Posted: 5th Feb 2010 22:45
I'm trying to make a level unload so that I can load another one...to do this, I need to delete the StaticRigidBodyMesh for the level...but for some reason it dbPhyDeleteRigidBody() doesn't work...it does nothing...the collision data is still there, even after I delete the object...is this a bug in DarkPhysX?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Feb 2010 23:42 Edited at: 5th Feb 2010 23:56
if you are removing all your object to load another lot in then dbPhyClear() might do the trick.


edit
In basic we don't have that command we only have..



Dark Physics makes any hot drink go cold.
Christopher Reeves
18
Years of Service
User Offline
Joined: 20th Dec 2005
Location: Texas, USA
Posted: 6th Feb 2010 04:39 Edited at: 6th Feb 2010 05:13
When I use dbPhyClear() it clears all collision data, I don't want to delete the character data for PhysX...just the level...I mean my God...does ANYTHING work right from The Game Creators. I mean, it's like everytime I buy something from them...I get a bloated app with tons of functions and features that don't work...what kind of company does that...this is insane!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Feb 2010 11:29
Christopher Reeves did you try dbPhyDeleteRigidBody( ObjectId ).


unlike a DarkBasic coders, you do have a choice, and thats is to call physX code direct, by calling the delete actors or what ever it called Nvidia PhysX.

Yes there are few bug in Physx plugin but when it was being fixed the first time round there where only a few coders that had brought it, so very few to find the bugs and have them fixed.

Taken me three years just to work out how to use most commands and to find some workarounds.


And thanks for letting me know what happens when you use phy clear, now I know that it works but not selectively, cheers.

Dark Physics makes any hot drink go cold.
Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 9th Feb 2010 17:31
phy delete rigid body works for me..

Login to post a reply

Server time is: 2024-04-26 14:57:21
Your offset time is: 2024-04-26 14:57:21