Hi,
OK, so I have a gameobject, which is surrounded by a few other gameobjects.
When I set the state of my first gameobject to active, I want to also activate the other objects that are in the vicinity.
My first attempt, has been to have a box collider as a trigger zone. It's small, and when my object becomes active, I scale my collider so that is covers the nearby objects. I've given all objects rigidbodys so I can check for their tags.
However this doesn't work. It's not recognising that object2 is in the trigger zone. Could this be because I'm only checking for object2 after my collider is scaled up and I'm somehow missing the 'On Trigger Entry'?
(I'm sending an event that Object1 is now active, and that's received on Object 2's FSM and it then checks for Trigger Entry).
Or is there a much simpler way of doing what I want to achieve, and I'm just being an idiot?
edit: OK, I actually got this to work when I started with Object1's trigger collider being large to begin with. I guess it's just about sorting out the timings of events and scaling.
As this is now posted here though, I guess my question about better/more efficient ways of doing this is still valid