【3Dゲームエンジン】Unity質問スレッド24at GAMEDEV
【3Dゲームエンジン】Unity質問スレッド24 - 暇つぶし2ch452:名前は開発中のものです。
16/05/17 14:34:37.72 FLvMyiRD.net
>>443
function Update () {
if (Input.GetButtonUp("Jump") && GetComponent("Rigidbody").velocity == Vector3(0, 0, 0)){
GetComponent("Rigidbody").AddForce((transform.forward + transform.right) * Speed, ForceMode.VelocityChange);
}
UnityEngine.Component.rigidbody' is obsolete. Property rigidbody has been deprecated. Use GetComponent<Rigidbody>() instead.
UnityEngine.Component.rigidbody は廃止されました。リジッドボディプロパティは非推奨です。代わりにGetComponent<Rigidbody>()を使用してください
URLリンク(docs.unity3d.com)
'velocity' is not a member of 'UnityEngine.Component'.
velocityはUnityEngine.Componentのメンバではありません
'AddForce' is not a member of 'UnityEngine.Component'.
AddForceはUnityEngine.Componentのメンバではありません。
URLリンク(docs.unity3d.com)
URLリンク(docs.unity3d.com)
URLリンク(docs.unity3d.com)
この辺の意味が分からないなら延々「コピペすれば動くコードをよこせ」と言わねばならなくなる。
Unityはプログラムできることは必須でUnityだけ覚えるとかいう道は基本的にないよ。


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