unity 帮助文档怎么还运行出问题呢cannot convert 'unityEngine.GameObject'to
来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/10/04 06:49:15
unity 帮助文档怎么还运行出问题呢cannot convert 'unityEngine.GameObject'to 'unityEngine.Rigidbody'
function Update () {
// Ctrl was pressed,launch a projectile
if (Input.GetButtonDown("Fire1")) {
// Instantiate the projectile at the position and rotation of this transform
var clone :Rigidbody;
clone = Instantiate(projectile,transform.position,transform.rotation);
// Give the cloned object an initial velocity along the current
// object's Z axis
clone.velocity = transform.TransformDirection (Vector3.forward * 10);
}
}
function Update () {
// Ctrl was pressed,launch a projectile
if (Input.GetButtonDown("Fire1")) {
// Instantiate the projectile at the position and rotation of this transform
var clone :Rigidbody;
clone = Instantiate(projectile,transform.position,transform.rotation);
// Give the cloned object an initial velocity along the current
// object's Z axis
clone.velocity = transform.TransformDirection (Vector3.forward * 10);
}
}
你确定你的projectile是一个Rigidbody?
英语翻译Convert cannot gain exclusive access to the drive letter
convert folder to
Cannot connect to remote 怎么解决
翻译:Convert lost chains to files
unity 怎么判断碰撞的物体?
养天空蓝魔虾出问题呢?
列车运行图调整当中火车还运行吗?如果运行的话怎么买票?
英语翻译U.S.May Convert Banks’ Bailouts to Equity Share Convert和
英语.convert…to…和convert…into…的区别
英语翻译The Type of the file system is convert cannot run becaus
wine运行错误Cannot find wine (wine)
英语翻译How to Encourage Team SpiritTeam spirit promotes unity a