c-frame / aframe-physics-system

community-maintained fork of n5ro's aframe-physics-system
https://c-frame.github.io/aframe-physics-system/
MIT License
43 stars 11 forks source link

Use null instead of an object with undefined properties #51

Closed Elettrotecnica closed 1 year ago

Elettrotecnica commented 1 year ago

This will be coalesced to an empty object, which keeps the expected behavior. The previous default would trigger a warning in the console about it not being conform to the vec3 property type definition.

Warning is:

core:schema:warn Default value [object Object] does not match type vec3 in component ammo-body

diarmidmackenzie commented 1 year ago

Thanks for this.