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

No files matched your search

+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();