Nama: MUHAMAD YUSRON
Nim :0955201041

Langkah pertama
1. Buat sebuah cube
dengan cara pilih menu Game object->Create Other->Cube (rename nama
Cube dengan nama 'pangkal')

2.Membuat pangkal dan lengan.

3.Membuat lengan bergerak.

4. Skrip lengan bergerak:
function Update() {
if (Input.GetKey (KeyCode.Q)) {
transform.Rotate(0,1,0);
}else if(Input.GetKey (KeyCode.W)) {
transform.Rotate(0,-1,0);
}
}
function Update() {
if (Input.GetKey (KeyCode.Q)) {
transform.Rotate(0,1,0);
}else if(Input.GetKey (KeyCode.W)) {
transform.Rotate(0,-1,0);
}
}

5. Slesai terimakasih,Selamat mencoba..........!!!
0 komentar:
Posting Komentar