[SOLVED] setLocalScale - Collision mesh

I can confirm it works as expected

    scale = otherEntity.getLocalScale();
    
    otherEntity.enabled = false;
    Ammo.destroy(otherEntity.collision.shape);
    otherEntity.collision.shape = null;
    otherEntity.setLocalScale(scale.x + 0.05, scale.y + 0.05, scale.z + 0.05);

  for (const instance of otherEntity.collision.model.meshInstances) {
  delete this.app.systems.collision._triMeshCache[instance.mesh.id];
  }

console.log(this.app.systems.collision._triMeshCache);
otherEntity.enabled = true;


}

Thank you folks

2 Likes