Liftoff Directions

This commit is contained in:
fez5587 committed 2020-07-05 10:22:16 -05:00
1 parent aaaf3929f9
commit db1cc75019
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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