You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2019. It is now read-only.
First of all thanks for the definition files, they help a lot.
I'm trying to create a CANNON.Body with shape and material properties set. However, I noticed that material is typed as a number (see here). In all examples I can find it references a CANNON.Material instance (see here for example).
Also, the CANNON.js Docs refer to a CANNON.Material instance on the CANNON.Body options.
Is this correct or am I missing something?
The text was updated successfully, but these errors were encountered:
Sorry Nicky my man, I made the change on Friday but forgot to commit.
Keep in mind that the accuracy of these definitions may be somewhat outdated. I wrote them a good year ago, but the project was abandoned before I could use them. I would welcome any other changes as PR's if you find them. Otherwise let me know any other issues.
@clark-stevenson Thanks a lot, didn't mean to put pressure on it! I will keep an eye out for any API changes and contribute here =). The CANNON.js repo is still in development, right?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
First of all thanks for the definition files, they help a lot.
I'm trying to create a
CANNON.Body
withshape
andmaterial
properties set. However, I noticed thatmaterial
is typed as anumber
(see here). In all examples I can find it references aCANNON.Material
instance (see here for example).Also, the CANNON.js Docs refer to a
CANNON.Material
instance on theCANNON.Body
options.Is this correct or am I missing something?
The text was updated successfully, but these errors were encountered: