- Home /
Duplicate Question.
See http://forum.unity3d.com/threads/offscreen-enemy-indicator.57852/
Vector3 position of a sloped point at edge of screen
Based on the picture shown (my awesome artwork), I want to create HUD objects (the red squares) that slide along the edge of the screen on the slope of the imaginary (blue) line drawn from the enemy Vector3 positions (Actually 2D positions) to the player's Vector3 position. Any help creating this controller script would be helpful.
You are telling me that you already know how to do this ;)
'Draw' a line from Player to Enemy. Find the place it intersects the screen bounds.
Follow this Question
Related Questions
Character controller slope limit issues 1 Answer
Character falls through upwards slope 0 Answers
Attempting to change the slope of a board to match the slope of the terrain below it 1 Answer
Slope Limit on Rigidbody First Person Controller 1 Answer
How do I make my character fall off slopes grater than its slope limit? 0 Answers