jcornaz / heron

[DISCONTINUED] An ergonomic physics API for bevy games
MIT License
292 stars 44 forks source link

Builder trait #75

Closed faassen closed 3 years ago

faassen commented 3 years ago

This is a slight refactoring of the code. I introduce a private ColliderFactory trait for Body that can be used to build the body. It basically turns what was a helper function into a method, and isolates the bit which determines what kind of rapier collider builder to return for a Heron entity.