Question by
Michael_-01-_ · Apr 25, 2016 at 01:52 PM ·
raycastcollider
Shooting through walls
Hi guys, im trying to accomplish a shooting through walls effect for my game, im trying to calculate the distance between the start of where my raycast hits the collide(wall) and where it leaves the wall( basicly, trying to find the distance between the start and end of the collider, relative to my raycast. Im going to use the distance to calculate a value that I will subtract from the damage. Any help will greatly be appreciated.
Comment
Your answer
Follow this Question
Related Questions
Check if position is inside a collider 5 Answers
How can I select 2 different objects using RayCastHit? 0 Answers
Make raycast ignore hitbox? 0 Answers
CircleCast hit its origin... 0 Answers
Exclude colliders from raycast 1 Answer