#[solved] aiming with raycasting and ray drawing
1 messages · Page 1 of 1 (latest)
OK, this fixed the raycast and drawray. the rays are now aiming at the crosshair as expected... but for some reason the barrel of the gun is skipping instead of following as it should, and at some point gets stuck looking up even if the crosshair is off to the side
Does it happen when there's no hit?
You're not setting aimPoint when there's no hit
or when none of the hits have the right tag
the crosshair moves in a space that has the launcher always aimed at the walls or the targets
shouldn't you be doing aimPoint = hit.point; instead of hit.transform.position?