AntonSynytsia / MSPhysics

A NewtonDynamics wrapper for SketchUp.
http://sketchucation.com/forums/viewtopic.php?f=323&t=56852#p516427
MIT License
55 stars 20 forks source link

Rework Collection Getter Functions #15

Open AntonSynytsia opened 5 years ago

AntonSynytsia commented 5 years ago

The C++ extension should not have a global variable s_valid_bodies. Instead, each instance of the world should have its own collection variable. Same applies to joints. Additionally, all the collection getter functions should be within the scope of their associated world rather than global.