schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

TypeScript: Make ContractMaterialOptions properties optional #224

Closed thomasboyt closed 8 years ago

thomasboyt commented 8 years ago

For some reason, ContactMaterialOptions was defined as a class of required properties, instead of an interface of optional properties like the other option definitions. This PR brings it in line with the other options so you no longer have to pass all fields to new ContactMaterial({...}).

schteppe commented 8 years ago

Awesome, thanks!