【3Dゲームエンジン】Unity質問スレッド39at GAMEDEV
【3Dゲームエンジン】Unity質問スレッド39 - 暇つぶし2ch715:名前は開発中のものです。
19/04/27 01:17:14.89 w4fC/pN8.net
>>703
public class ExampleClass : MonoBehaviour
{
public Rigidbody rb;
void Star()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
if (Input.GetButtonDown("Jump"))
rb.velocity = new Vector3(0, 10, 0);
}
}
void OnCollisionEnter (Collision col)
{
}


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch