Actor::updateMassFromShapes
来源:互联网 发布:mtv下载精灵软件 编辑:程序博客网 时间:2024/06/05 19:46
unity报错Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!
该错误是meshcollider和Rigidbody冲突导致。也可能是collider重复导致,boxcollider和meshcollider,选中contex这个属性应该就没事了
在新的ngui中UI Root会默认加上UIPanel这个脚本,UIPanel类里对该物体添加组建Rigidbody,这里说的3D UI,2DUI不存在,
这样就会导致一个错误,就是在这个UI Root下添加的子物体都不能添加meshcollider只能添加boxcollider,有时候不满足需求,
两种解决办法,使子物体可以添加meshcollider,找到UIpanel类注释掉添加Rigidbody的那几句话,当然有的需求会使用到这个Rigidbody,那么可以使用2D UI,这个不存在Rigidbody这个物理,所以添加meshcollider不会发生错误。
0 0
- Actor::updateMassFromShapes
- Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes!
- Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes!
- Actor
- Actor
- Actor
- Actor
- 什么是Actor?
- Actor 组件
- Actor模型
- Actor模型
- Actor模型
- Actor模型
- Actor模型
- actor 模型
- Actor Model
- Actor模型
- Actor模型
- 验证码更新问题
- N条直线能把平面分成几块
- 一些以数字命名的项目的含义
- Linux下getsockopt/setsockopt 函数说明
- sruts2的运行流程
- Actor::updateMassFromShapes
- 设计模式——中介者设计模式
- cocos2dx环境配置和打包
- 正则表达式
- Linux设备驱动程序学习笔记06:字符设备驱动程序IV
- Message Flood(STL set容器求解)
- boa源码分析(1)--Makefile
- 策略模式(Strategy Pattern)小结
- [linux]nginx入门