How do i create something like:
Random.insideUnitSphere
except where it just acts as a collider and returns the object it hits?
like
Physics.OverlapSphere
?
Random.insideUnitSphere gives you a Random point inside a Sphere with radius 1
you can’t use this for a collision system.
depending on what you want to collide you can calculate if it hits or not by yourself
Ok thanks, this looks like what i want.
Yeah i know that it gets a random point that’s why i asked if there’s another similar method except that returns a collider it hits. but thanks for your help anyway.