matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

why delete chamfer from options?

Open itgoldman opened this issue 2 years ago • 1 comments

deleting properties from options prevents user from passing same options to several bodies.

itgoldman avatar Mar 05 '22 12:03 itgoldman

I agree that this is weird. The reasoning might be that we don't want/need the chamfer property on the created body (and a body clones all the options properties). However, Body.create will always create a chamfer property anyway, set to null... This property doesn't seem to be used anywhere, it might be just there to make the linter happy.

To make this consistent, this PR should be merged or chamfer should be deleted from the "default" body options in Body.create.

wilcooo avatar Nov 15 '23 22:11 wilcooo