Bizorke / Gear3Engine-Issues

For bugs and features.
1 stars 0 forks source link

Generic support for multi-body objects. #1180

Closed JSideris closed 3 years ago

JSideris commented 3 years ago

Every PhysicalObject should have a primary body, but may have other bodies as well. All the bodies should be added via two helper methods: addPrimaryBody and addSecondaryBody. Upon deletion, the objects should be removed from the scene automatically in the reverse order that they were added.