- Home /
Question by
Estevominador · Nov 29, 2012 at 03:17 PM ·
camerafpsrandomstyle
Random Camera Movement (Revil Style)
'sup, guys?
I'm trying to make the camera move randomly when the player is aiming. some sort of Resident Evil 4/5 aim. can someone help?
Comment
Answer by eteeski · Dec 05, 2012 at 12:49 AM
smooth damp the camera to a zero position, or position where you want the camera to generally stay. I think you could use the Vector3.SmoothDamp function. Then every frame do position.x += (Random.value - 0.5)*shakeAmount; as well as on the y and z axis too. Hope that helps :)
Your answer
Follow this Question
Related Questions
2 players. Controlling just 1. 3 Answers
how do i make a fps controller 3 Answers
Walk/run animation moves main camera up and down (first person) 1 Answer
I need help with my script 3 Answers
Mobile Camera Movement. 0 Answers