- Home /
SphereCast not hitting the box bollider correctly
Hi, i have another sphereCast problem.
My player use a sphereCastAll to hit the ennemies when he attack. the spherecast start on my player position, and go forward for 10 meters. Then, i "hurt" all hited objects.
But, the box collider are not hited like the sphere collider. I have 2 objets (exactly the same, exemple the collider. the box colldier are not hited when they start too close of the raycast begining position.
Here i just draw the problem : [http://uppix.net/8/a/d/1331d162bcebc17e2fb2b9ee81b53.jpg]http://uppix.net/8/a/d/1331d162bcebc17e2fb2b9ee81b53.jpg[1]
My box are hited when i use a "OverlapSphere", but OverlapSphere are not "moving" like the sphereCast does. (and if i use both, my sphere will be hited twice..)
Your answer
Follow this Question
Related Questions
Which is more efficent? SphereCast, SphereCastAll, or OverlapSphere? 1 Answer
SphereCast misses but RayCast and OverlapSphere don't 1 Answer
How do you perform a stationary SphereCastAll? 1 Answer
Collider OnTriggerEnter not working 0 Answers
Overlapsphere not returning all colliders it touches 1 Answer