Mouse Pointer Aiming (Finally)
Channel:
Subscribers:
1,260
Published on ● Video Link: https://www.youtube.com/watch?v=QFFXj8tjxoM
First normalize the mouse coordinates to the ranges -1 to 1.
Then build a RayVector.
X component MouseX times tan( verticalFOV / 2 ) times the aspect ratio.
Y component MouseY times tan( verticalFOV / 2 ).
Z component of 1.0.
Then normalize this vector and cast it from the Camera's position into world space and test the geometry's triangles for the nearest point. I move the point up an arbitrary amount and cast another ray straight down to get the final position.
Other Videos By Michael Lundgren
2023-02-25 | 5 minutes to orbit in 2 min 10sec |
2023-02-25 | Using Vizzy to automate Career mode missions |
2023-02-22 | Prototype Anti-Satellite Missile |
2023-02-07 | Launch Window Calculator |
2022-12-16 | The Long Dark Bear attack |
2022-11-22 | Rimworld Crazed Rhino pack vs Uranium Slug Turrets and a minefield |
2022-10-21 | Hive Sweeper |
2022-10-02 | The game is getting sticky. Added cue stick |
2022-09-27 | Collision avoidance on scratch recovery |
2022-09-25 | Camera Smoothing and mouse aiming polish |
2022-09-22 | Mouse Pointer Aiming (Finally) |
2022-09-21 | Breaking the triangle |
2022-09-20 | Multi threading off then on |
2022-09-15 | Filling up the side pocket to max capacity |
2022-09-14 | Accidently wrote color on the shadow map in the ball shader and got this cool result. |
2022-09-14 | DX11 Milestone - Shadow Mapping |
2022-09-13 | Figured out how to use Render to Texture |
2022-09-12 | PoolBall Follow Camera transfers ownership on contact |
2022-09-07 | Basic Texture PoolTable Model |
2022-09-05 | Untextured Pool Table Model WIP |
2022-08-31 | 1:1 collision with Imported geometry |
Other Statistics
Unreal Statistics For Michael Lundgren
At this time, Michael Lundgren has 143 views for Unreal spread across 1 video. Less than an hour worth of Unreal videos were uploaded to his channel, less than 0.03% of the total video content that Michael Lundgren has uploaded to YouTube.