Hello, how do i solve this error? I’m hitting my head against it for some time.
Ship.model.model.meshInstances[0].material.diffuseMap=this.app.assets.find('wood1.jpeg','texture').resource();
Hello, how do i solve this error? I’m hitting my head against it for some time.
Ship.model.model.meshInstances[0].material.diffuseMap=this.app.assets.find('wood1.jpeg','texture').resource();
Hi @ayrin,
Resource isn’t a method but a property, so you should remove the parentheses at the end.
Ship.model.model.meshInstances[0].material.diffuseMap=this.app.assets.find('wood1.jpeg','texture').resource;
cannot read property assets of undefined…
EDIT: solved!! added bind(this)
but i have this other error that can’t understand
This error is related with physics/Ammo.js, no idea though where it comes from.
It seems there is an issue with the model that is passed to the physics engine to calculate the collision shape.
Check if the model has properly loaded and if the error persists you can submit an issue in the engine repo.