Question by
gustavim15 · Sep 06, 2016 at 01:56 AM ·
raycast2d-platformervector2raycasthit2ddiagonal
How to Raycast 2D Diagonally instead of Horizontal on a Platformer game.
Hi everybody...
I created a blink ability for my character and when I press the blink button, I send a raycast2D in front of the character, to take the new position to blink, like in: This Video.
The problem is because I want to create a raycast like this, but diagonally, like 45 degrees. How can I add a rotation to this raycast, instead of make it only horizontaly?
Thanks a lot. Ask me if I wasn't clear enough.
Comment
Your answer
Follow this Question
Related Questions
One 2D Raycast Not Stopping Even Though Others Do? 0 Answers
Need help making a ledge climber. The problem, transform.position always returns to vector( 0, 0) 0 Answers
Raycast2d does not always work properly 0 Answers
How can I detect which game object was clicked? 0 Answers
2D Platformer Shooting - Raycast Issue 0 Answers