- Home /
Irregularity with my raycast when moving
I put together a line renderer / ray cast system following along to an official Unity tutorial. Everything is great until I start picking up speed when strafing.
The laser properly fires from the barrel but when I'm moving / changing directions at peak speed the cast randomly looks like it's shooting from the center of the screen.
Answer by NorthStar79 · Jan 09, 2019 at 08:19 AM
No, it is not shooting from the center of the screen. it is shooting from where it should be shooting. but it stays exact same position after shooting. that cause this weird look. you can change your line renderers first point every frame to cope it with players movement.
Your answer
Follow this Question
Related Questions
Unrealistic Fps Shooting? 1 Answer
Cant assign animation to script 1 Answer
Instantiated GameObject does not have variables 0 Answers
Multiplayer updates are really slow 0 Answers
Problems with Dani's Karlson FPS Movement Controller 1 Answer