deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

feature request: custom config #52

Closed blackgoatgames closed 11 years ago

blackgoatgames commented 11 years ago

This would help adjusting params for different simulation situations. For example adjusting BOUNCE_THRESHOLD when simulating top down environments (no gravity, slow moving bodies behave weird on collisions).

deltaluca commented 11 years ago

These are the parameters I will be opening up, APi is not finalised and I may yet decide that it's quite simply easier to just leave them static for the present version of Nape instead of having a Config object passed to the Space. We'll see.

https://gist.github.com/4252526

blackgoatgames commented 11 years ago

This looks great! Thanks for the fast reply.

deltaluca commented 11 years ago

Released with 2.0.3

Configurations were made static, simply because it was a far simpler change; and also opens up 'every' configuration option, sicne not every option 'could' be restricted to a Space instance.

I hope you don't need to have more than one Space configured differently ;P