摘要: 方法一:给Cube添加rigidbody,然后代码rigidbody.AddTorque (10, 0, 0);将使Cube沿X轴翻滚方法二:Cube没有添加rigidbody,利用以下代码计算翻滚//Repostingthisnon-workinganswerbecauseitwasunreadablewhenpostedasacommenttothepreviousanswervarcubeSize:float=1;varcubeSpeed:float=80;privatevartotalRotation:float=0;//determinesifwe'repastthe90de 阅读全文
posted @ 2012-03-21 11:57 Ethan_村长 阅读(385) 评论(0) 推荐(0) 编辑