Question by
Equ1l1brist · Jan 16, 2017 at 05:37 PM ·
raycastcubeoncollisionenterteleport
Can you raycast to detect a point on the other side of a cube
Just wondering if it is possible for a raycast to detect a point on the other side of a cube which it originates from. What I want to do in my game is cast a ray forward when the player walks into this wall (a cube) and teleport them to the point of contact on the other side of the wall. The ray just doesn't seem to detect the collider for some reason. Even when I check for the proper tag. Any help would be great, thanks.
Comment
Your answer
Follow this Question
Related Questions
Raycast to detect point on adjacent wall 0 Answers
Interacting with one objects activates other objects with similar scripts. 1 Answer
why this code doesnt work for jumping ?!(Raycasting) 0 Answers
Raycast line renderer not drawing correctly 0 Answers
Range not working c# - shooting script using raycast 0 Answers