Why is it that my code:
var colliders = Physics.OverlapSphere( MyPastPosition, 150.0);
does not work properly?
What happens is that everything works fine but it never puts the sphere at the position vector I choose, always at the center of the player (first-person-shooter). Plus the radius I assign act very strange. It wont affect objects in a radius of 15 or so, only if I set the radius to about 150 or more??
I really appreciate the help, Thanks!
It really depends on how you define MyPastPosition; since it is the position that doesn't work. as far as the radius weirdness goes it could just be that you need a large radius value, or that there is a problem with what you do to the colliders once they're returned from the Overlap Sphere. Sorry if that doesn't help but it's difficult to tell what the problem is with this little information.
answered Feb 21 '10 at 02:40 PM
I just found out about OverlapSphere this morning, but check out this thread, I think it might help :) http://answers.unity3d.com/questions/30078/overlapsphere-giving-me-trouble
Also I see you posted that ove a year ago? Maybe your not even havling trouble with it :D
answered Jan 31 '11 at 04:27 PM