Hi guys,
So I have do some research about shaking camera and currently I almost get the job done,
but I can not take good control of the shaking speed of the camera, it is shaking to fast and looks fake.
Here are the core codes I am using:
void Update ()
{
if ( shake_intensity > 0.0f )
{
originPosition = gameObject.transform.position;
shakeVector = Random.insideUnitSphere * shake_intensity;
transform.position = Vector3.Lerp( originPosition, originPosition + shakeVector, Time.deltaTime );
}
}
So I am hoping that anyone could show some tips about how I can slow down the shaking and control it over time, say 1 sec per round ?
Thanks !