lights
This commit is contained in:
1 parent
5cbd487f7e
commit
0daeae4b55
60 files changed
+8164
-113
No files matched your search
@@ -9,14 +9,14 @@ public class TrackLimits : MonoBehaviour {
|
||||
|
||||
void OnCollisionEnter(Collision collision) {
|
||||
// Debug-draw all contact points and normals
|
||||
foreach (ContactPoint contact in collision.contacts) {
|
||||
Debug.DrawRay(contact.point, contact.normal, Color.white);
|
||||
}
|
||||
// foreach (ContactPoint contact in collision.contacts) {
|
||||
// Debug.DrawRay(contact.point, contact.normal, Color.white);
|
||||
// }
|
||||
|
||||
Debug.Log("Collision mag " + collision.relativeVelocity.magnitude);
|
||||
// Debug.Log("Collision magnitude " + collision.relativeVelocity.magnitude);
|
||||
|
||||
if (collision.gameObject.tag == "TrackLimits") {
|
||||
Debug.Log(collision.gameObject.name);
|
||||
Debug.Log("Track Limits " + collision.gameObject.name);
|
||||
ship.Respawn();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user