#pragma strict
var rb: Rigidbody;
function Start() {
rb = GetComponent.<Rigidbody>();
}
function FixedUpdate () {
if (Input.GetButtonUp("Jump")){ rb.velocity = Vector3(0, 0, 0);}
{
Rigidbody.AddForce((transform.forward + transform.right) * Speed, ForceMode.VelocityChange);
}
}
このようなプログラムでスペースを押したらボールが動くようにしたのですが
Assets/Ball.js(10,68): BCE0005: Unknown identifier: 'Speed'.
と出てしまいます
Javascriptを使っています
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/14 14:15
2017/02/15 03:48