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
constgroundBody=newCANNON.Body({type: Body.STATIC,shape: newCANNON.Plane(),})groundBody.quaternion.setFromEuler(-Math.PI/2,0,0)// make it face upworld.addBody(groundBody)
It throws Uncaught ReferenceError: Body is not defined
Whereas it should be:
In Getting started in Cannon-es docs
Code is
It throws
Uncaught ReferenceError: Body is not defined
Whereas it should be:
Cause we aren't importing Body directly into our script.
Same mistake here:
The text was updated successfully, but these errors were encountered: