three.weapp.js提示applyMatrix4 is not a function

最近做项目使用three.weapp,因为是微信版的three,所以删减了好多方法。

在使用applyMatrix4 时报了 applyMatrix4 is not function的错误。

解决方法简单,找thee里面有的方法代替。

先console.log查看下three.weapp里面的Group prototype有什么

可以看到有一个applyMatrix方法。我把applyMatrix4换成applyMatrix这个方法就解决了。

 

posted @ 2024-05-13 17:12  H柷H  阅读(42)  评论(0编辑  收藏  举报