|
I'm currently working on a FPS game. Just want to know is there any way to make the camera shaking to imitate sprint effect? Thanks for any help
(comments are locked)
|
|
You could simply animate the camera (either directly in Unity or in any modeling application, via an object that you parent the camera to) to get the sprint movement and then blend that animation depending on the velocity of the player. Not sure if it works with the ootb FPS controller, though. You might have to write your own (if you haven't already). I will try it someday, thanks for your response
May 12 '12 at 04:04 PM
071813g
(comments are locked)
|

Yes, there is a way. Next question?
I've tried methods like animating the camera or adding command like "cam.transform.localPosition = Random.insideUnitSphere " in script. But none of them achieve the result.
I want the camera to shake without affecting the player's movement .So what exactly do I need to add in scripting?
For instance like this?
if(Input.GetKey(KeyCode.LeftShift)) //move the camera angles
You should look around on this forum because I think I have seen answers to this many times. I give a hint search bar, run, crouch.
I found them! I guess I didn't type the right key word for searching. Sorry for this.
Yes, there is script called Headbobber, this is exactly what I'm looking for.
put a link to the answer for other people that want to do this