0128名前は開発中のものです。
2018/02/19(月) 15:46:18.90ID:LZNQfRtmpublic float smooth = 2.0F;
public float tiltAngle = 30.0F;
void Update()
{
float tiltAroundZ = Input.GetAxis("Horizontal") * tiltAngle;
float tiltAroundX = Input.GetAxis("Vertical") * tiltAngle;
Quaternion target = Quaternion.Euler(tiltAroundX, 0, tiltAroundZ);
transform.rotation = Quaternion.Slerp(transform.rotation, target, Time.deltaTime * smooth);
}
これカメラにアタッチしてやると出来るで