Liftoff Directions
This commit is contained in:
1 parent
aaaf3929f9
commit
db1cc75019
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Cryptography;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -26,15 +27,16 @@ public class Rocket : MonoBehaviour
|
||||
if (Input.GetKey(KeyCode.Space))
|
||||
{
|
||||
rigidbody.AddRelativeForce(Vector3.up);
|
||||
// AddRelativeForce(Vector3.up);
|
||||
}
|
||||
if (Input.GetKey(KeyCode.A))
|
||||
{
|
||||
print("LeftPressed");
|
||||
transform.Rotate(Vector3.forward);
|
||||
}
|
||||
else if (Input.GetKey(KeyCode.D))
|
||||
{
|
||||
print("RightPressed");
|
||||
transform.Rotate(-Vector3.forward);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -209,7 +209,7 @@ Rigidbody:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2126072322}
|
||||
serializedVersion: 2
|
||||
m_Mass: 0.1
|
||||
m_Mass: 0.3
|
||||
m_Drag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_UseGravity: 1
|
||||
|
||||
Reference in new issue
Block a user