[LayaAir 2.0]给mesh添加物理组件就报错

var mesh: Laya.MeshSprite3D = this.track._children[this.track.numChildren - 1];
var collider: Laya.PhysicsCollider = mesh.addComponent(Laya.PhysicsCollider); 
var shape: Laya.MeshColliderShape = new Laya.MeshColliderShape();
shape.mesh = mesh.meshFilter.sharedMesh; 
collider.colliderShape = shape;
微信图片_20190715113645.png
已邀请:

Aar0n

赞同来自:

3d初始化之前 把默认内存提高试试   Config3D的
_defaultPhysicsMemory

要回复问题请先

商务合作
商务合作