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 May 23, 2024. It is now read-only.
core:a-node:errorFailureloading node: TypeError: Cannotreadproperty'toUpperCase'ofundefinedatNewComponent.initBody(aframe-physics-system.js:17135)atNewComponent.init(aframe-physics-system.js:17098)atNewComponent.initComponent(component.js:320)atNewComponent.updateProperties(component.js:302)atHTMLElement.updateComponent(a-entity.js:490)atHTMLElement.updateComponents(a-entity.js:463)atentityLoadCallback(a-entity.js:249)atemitLoaded(a-node.js:127)``` ```js/** * Parses an element's geometry and component metadata to create a CANNON.Body instance for the * component. */initBody: function(){varel=this.el,data=this.data;varobj=this.el.object3D;varpos=obj.position;varquat=obj.quaternion;this.body=newCANNON.Body({mass: data.type==='static' ? 0 : data.mass||0,material: this.system.getMaterial('defaultMaterial'),position: newCANNON.Vec3(pos.x,pos.y,pos.z),quaternion: newCANNON.Quaternion(quat.x,quat.y,quat.z,quat.w),linearDamping: data.linearDamping,angularDamping: data.angularDamping,type: data.type==='dynamic' ? CANNON.Body.DYNAMIC : CANNON.Body.STATIC,});// Matrix World must be updated at root level, if scale is to be applied – updateMatrixWorld()// only checks an object's parent, not the rest of the ancestors. Hence, a wrapping entity with// scale="0.5 0.5 0.5" will be ignored.// Reference: https://github.com/mrdoob/three.js/blob/master/src/core/Object3D.js#L511-L541// Potential fix: https://github.com/mrdoob/three.js/pull/7019this.el.object3D.updateMatrixWorld(true);if(data.shape!=='none'){varoptions=data.shape==='auto' ? undefined : AFRAME.utils.extend({},this.data,{// This is the linetype: mesh2shape.Type[data.shape.toUpperCase()]});varshape=mesh2shape(this.el.object3D,options);if(!shape){el.addEventListener('object3dset',this.initBody.bind(this));return;}this.body.addShape(shape,shape.offset,shape.orientation);// Show wireframeif(this.system.debug){this.shouldUpdateWireframe=true;}this.isLoaded=true;}this.el.body=this.body;this.body.el=el;// If component wasn't initialized when play() was called, finish up.if(this.isPlaying){this._play();}if(this.isLoaded){this.el.emit('body-loaded',{body: this.el.body});}},
May be worth improving that line real quick?
This happened when adding superhands to stuff. I eventually solved the issue, don't recall what I changed.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
May be worth improving that line real quick?
This happened when adding superhands to stuff. I eventually solved the issue, don't recall what I changed.
The text was updated successfully, but these errors were encountered: