unityのコードレビューしてくれ。 (105レス)
上下前次1-新
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん
1: 2023/03/16(木)19:49 ID:2Ni9Md6U(1/5) AAS
unity初めて1日。初心者です助けてわからん↓のどこかが間違ってるらしい
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
private void FixedUpdate()
{
//Rigdboodyを取得
Rigidbody rigidbody = GetComponent<Rigidbody>();
//方向キーの入力
float x = Input.GetAxis("Horizontal"); //横軸
float z = Input.GetAxis("Vertical"); //縦軸
//ベクトルに変換
Vector3 vec = new Vector3(x.0.z);
//力を加える
rigidbody.AddForce(vec);
}
}
3: 2023/03/16(木)19:56 ID:2Ni9Md6U(2/5) AAS
まだあるっぽいです。
4: 2023/03/16(木)20:31 ID:2Ni9Md6U(3/5) AAS
寝ます
5: 2023/03/16(木)20:35 ID:2Ni9Md6U(4/5) AAS
書いといてくれ
6: 2023/03/16(木)20:40 ID:2Ni9Md6U(5/5) AAS
エラー内容
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification ()
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.327s*