Question by
ToasterKetchup · Nov 12, 2019 at 08:41 AM ·
spherecast
Why does my spherecast not work?
I'm trying to detect the ground beneath my character by using a spherecast. However, it's returning null.
Physics.SphereCast(transform.position, 1, Vector3.down, out hit);
My understanding was that the code above would spawn a sphere of the radius of 1 downward from the position of my object, but this does not seem to be the case. What am I missing?
Comment
Your answer
Follow this Question
Related Questions
AI and Enemy Detection 1 Answer
simplest way to add a minimum distance or gap between instantiated objects 1 Answer
SphereCastAll hit.point are allways zero 1 Answer
Having Troubles with Sphere Casts 0 Answers
SphereCast is behaving like RayCast(only detecting object in the given direction) 1 Answer