The question is answered, right answer was accepted
How to get the radius of a shpere trigger(collider)
One of the game objects has two sphere colliders (both of them are triggers) but with diffrent radius. How to get the radius of the bigger one when OnTriggerEnger the bigger one and how to get the radius of the smaller one when OnTriggerEnger the small one? plz
Answer by tormentoarmagedoom · Jul 13, 2018 at 09:17 AM
Good day.
Why? Why you have 2 identical colliders with different radius?... The inner collider is doing nothing.
You only need 1 colider, and once you detect some trigger enter/stay you can calculate the distance of the object with vector3.distance
But having 2 identical collider have no sense.
Bye!
Actually before you answered this question I thought those two colliders have differences, and it's able to differentiate them by program... lol