[SOLVED] Load texture problem

Hello, how do i solve this error? I’m hitting my head against it for some time.


Hi @ayrin,

Resource isn’t a method but a property, so you should remove the parentheses at the end.


cannot read property assets of undefined…
EDIT: solved!! added bind(this) :smiley:

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.

Well i didn’t really need the ammo, so i deleted it :stuck_out_tongue: Thanks @Leonidas

1 Like