- Home /
Other
Array of objects in front of player?
How would you set up so that all objects in front of player are put into an array? And I don't mean in camera view, just anything in the forward 180degree area. Unless doing it by camera view would be easier, but not with raycasting, I want to try something more efficient. Any ideas?
Answer by AyJayKaySoft · Oct 07, 2013 at 07:12 PM
You could just check every object KLICK and KLICK . In case of 180 degrees you could use a big boxcollider ...
are you saying use a box collider with or without that code? I am assu$$anonymous$$g use the collider as a trigger, and check when object colliders are within the trigger?
Follow this Question
Related Questions
finding an objects index in a multi dimensional static array? 1 Answer
Cannot access class array in dynamically created object 1 Answer
Adding an object to an array of custom objects (JS) 1 Answer
How to remove an object from an array once it has been destroyed 1 Answer
Error putting an object into an Array 0 Answers