摘要: //this script pushes all rigidbodies that the character touchesvar pushPower : float = 2.0;function OnControllerColliderHit (hit : ControllerColliderHit) {var body : Rigidbody = hit.collider.attachedRigidbody;// no rigidbodyif (body == null || body.isKinematic)return;// We dont want to push objects 阅读全文
posted @ 2011-04-04 13:24 softimagewht 阅读(212) 评论(0) 推荐(0)