Why is it not possible to delete single GroupIDs?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Why is it not possible to delete single GroupIDs?

Postby Xaymar » Sun Jan 23, 2011 3:19 pm

I currently have a problem with PhysicsMaterials.
I haven't figured out why it's not possible to delete a single GroupID, but possible to delete all of them. Where's the problem with deleting a single GroupID?

I'd like to see this added, or at least explained why it isn't possible. Thanks in advance.
Xaymar
 
Posts: 8
Joined: Sat Jul 10, 2010 7:49 pm

Re: Why is it not possible to delete single GroupIDs?

Postby Julio Jerez » Sun Jan 23, 2011 4:31 pm

If it a weakness of the engine. I never bottere to add that funtionality.
Basically the hash table that is used for Material System does not allow for removal on single entry without rehashing.
plus it is not that simple to change after all that is build on top of the system.

I could add that funtionality, however like the Predefined internal joints which are replaced by open source joint library,
I do not want to expand the inernal Material System because I want to encourage people to use the ShapeIDs and build thier own application side material system,
Here is an example of a Flexible Material System that uses the Shape ID, and it is all open source.
http://newtondynamics.com/wiki/index.php5?title=Tutorial_201:_-_Advanced_Custom_Material_System

This is very symilar to the one that is used in the engine. But it uses the shapID instead of the BodyID.
It is way more powefull since it allow for unification of Collison Tree, and convex, and Terrain in a singel callback system.

you can even mix both system
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests