draw gizmos sphere indicating explosion damage radius

This commit is contained in:
in0finite 2020-06-27 22:40:51 +02:00
parent ba1ebf4213
commit bc605534e6

View file

@ -224,6 +224,13 @@ namespace SanAndreasUnity.Behaviours.Vehicles
Object.Destroy(meshFilter.gameObject, VehicleManager.Instance.explosionLeftoverPartsLifetime * Random.Range(0.8f, 1.2f));
}
void OnDrawGizmosSelected()
{
// draw sphere indicating explosion damage radius
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(this.transform.position, VehicleManager.Instance.explosionDamageRadius);
}
}
}