- Home /
Question by
zak666 · May 29, 2015 at 05:47 AM ·
scriptingbasics
Virtical rotation script errors.
Hi trying to create a simple rotation script to rotate my object up and down.though when i remove the "Horizontal" movment of this script it gets errors when i only want the vertical rotation.
using UnityEngine;
using System.Collections;
public class climbDive : MonoBehaviour {
void Update () {
transform.Rotate ( Input.GetAxis ("Vertical"), 0.0f);
}
}
Comment
Your answer
Follow this Question
Related Questions
Multiple Scripts attached to a GameObject vs Inheritance 0 Answers
error CS0029: Cannot implicitly convert type `UnityEngine.ParticleSystem.MinMaxCurve' to `float' 0 Answers
How can i check and fire an event when the user look at specific object ? 0 Answers