CapsuleCastAll (again.. T_T)

i really hate this function but yet, i have to use it again >.<
ok well, i wont explain why i need this and everything but i need to cast a SPHERE…
and no i dont want OverlapSphere because i need to get all the vectors of the points in which the sphere collided and not the colliders. the vectors.
so i tried to cast a capsule.
because i dont want it to be a capsule, both points are the same (to cast a sphere)
radius 10, and i dont want it to move >.< so just left all the other fields 0.

var hitInfo:RaycastHit[ ] = Physics.CapsuleCastAll(transform.position, transform.position, 10, Vector3.zero, 0);

the problem is, it is not colliding with anything…
thanks in advanced

Why don’t you use Physics.SphereCast?

THERE IS A PHYSICS.SPHERECAST!@?#?#!?@!#? wow this is fail.
hold on… let me check.

edit:
omg… i hate my searching ability T_T
where have you been 1 hour ago? xD jk.
thanks.

var hitInfo:RaycastHit[ ] = Physics.SphereCastAll(transform.position, 10, Vector3.zero, 0, floorLayer);

there is still a problem… it still doesnt return anything. i have made a loop for hitInfo and tried printing the point but nothing happend…
tried without floorLayer too.