- Home /
Question by
MerlinM1S · Oct 15, 2018 at 11:47 AM ·
physics2draycasthit2dboxcollider2daccuracy
Inaccurency BoxCast2D,Inaccuracy BoxCast2D
If I use Physics2D to cast a box against a rotated BoxCollider2D the hit.point is a little bit off.
Casting a ray against the predicted closest point is accurate. Image: green = BoxCollider2D, cyan = raycast + raycasthit, red = BoxCast2D origin + BoxCast2D hit
Is there a way to get the same accurate behaviour with BoxCast2D ?
boxcast.png
(13.4 kB)
Comment
Your answer
Follow this Question
Related Questions
Ball bounces at different heights when it shouldn't 0 Answers
Player can't move, Boxcast Problem 1 Answer
2DRaycastHit vs 2DOverlapArea Performance? 0 Answers
I don't get Raycasts 0 Answers
Object with Rigidbody slips off corners of static platforms 1 Answer