Unity 3D Simple AirplanePropeller Tutorial
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL
1. Create New C# and name it : AirplanePropeller
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class AirplanePropeller : MonoBehaviour {
public Vector3 Axis = Vector3.one;
void Start () {
}
// rotation along the Axis
private void FixedUpdate ()
{
this.transform.Rotate(Axis * Time.fixedDeltaTime);
}
}
---------------------------------------------------------------------------------
0 comments:
Post a Comment