Hello, I am nearly finished with the Tank Tutorial but have run into some problems with the shell explosion script.
private void OnTriggerEnter(Collider other)
{
// Find all the tanks in an area around the shell and damage them.
Collider[ ] colliders = Physics.OverlapSphere(transform.position, m_ExplosionRadius, m_TankMask);
for (int i = 0; i < colliders.Length; i ++)
{
Rigidbody targetRigidbody = colliders{i}.GetComponent();
That is the section that is giving me problems, I am fairly sure I followed the instructions and tried running api updater but it has not worked. The error message reads "cannot implicitly convert type unity engine.collider to unity engine.rididbody
can anyone help?
Thanks