- Home /
how to make crosshair move slightly
I want to make the crosshair move in my fps game. I would like it to move slightly in random directions like a person was holding the gun (a person can't hold a gun perfectly still). How can I do this?
Comment
Answer by efge · Apr 18, 2011 at 03:11 PM
You could use the function Random.Range to calculate the x and y values in screen space or x and z values in 3D for transform.position and then use Mathf.SmoothStep or Mathf.SmoothDamp to make smooth transitions.
Your answer
Follow this Question
Related Questions
Gun wont stop shaking in shoulder position, when aiming down sights, no shaking? 1 Answer
Zombie FPS 2 Answers
Animation & Script Help 2 Answers
RayCast Shooting not working 0 Answers
A node in a childnode? 1 Answer