This commit is contained in:
ntr committed 2023-07-18 23:11:15 +10:00
1 parent 558671a75e
commit dfb839b48d
5 files changed
+20 -3

No files matched your search

-1
View File
@@ -95,7 +95,6 @@ public class ShipControls : MonoBehaviour, ShipInput.IMovementActions {
rigidBody.rotation = Quaternion.RotateTowards(transform.rotation, aim.transform.rotation, step);
}
void UpdateCamera() {
// there's some hokey scaling that went on with the old input
// we were originally using
+1
View File
@@ -15,6 +15,7 @@ public class ShipPhysics : MonoBehaviour {
// Debug.DrawRay(contact.point, contact.normal, Color.white);
// }
Debug.Log("mag" + collision.relativeVelocity.magnitude);
if (collision.relativeVelocity.magnitude > maxDmg) {
Debug.Log("Ddddestroyed by" + collision.gameObject.name);
ship.Respawn();