-
Notifications
You must be signed in to change notification settings - Fork 87
[Question] - how to make both camera moving and shaking #4
Comments
From what I can tell, it looks like Camera Rig is still trying to move the camera itself and not the camera's parent. Make sure that your rigging script is only moving the camera's parent and not the camera itself. If that doesn't help, feel free to reply! |
Hi, @andersonaddo, this is my camera rig's script:
where I have noted, you related this to #3, so I changed hierarchy structure now to:
and yet, the issue remains - the camera follows the player but does not shake at all. |
Huh that is pretty strange! Something is interfering with something but I'm not sure what... |
I was preparing for you a minimum playable example, when I found the configuration in which the things work. Here it is:
Hope this helps. |
Honestly, I'm completely surprised that works! It really shouldn't 🤔 |
I recently upgraded from 2018.3 to 2019.2 and now experiencing the shake as well. Pretty much vibrating the whole scene. |
Huh that's interesting, I just tested it and it looks like the demo script still works as expected in 2019.3.0b1. |
Actually, rearranging it to @angel1st 's configuration has now solved it for me. Thanks |
However, the hierarchy of @angel1st doesn't work for me in 2020.1.0a25. But it hinted me, and I find this would work well:
|
Hi there,
I need to have camera both following my player and shaking. Currently, camera moving script is in camera parent object. So basically, I have the following hierarchy:
I read your document and noted, I should NOT put the
CameraShaker
into the same object, responsible for the camera moving (in my caseCamera Rig
), hence I put it into the Camera object itself. Unfortunately, it does not shake the camera.If I put the script into the
Camera Rig
, the camera shakes on collision, but it does not follow the player anymore.Any hint would be greatly appreciated!
The text was updated successfully, but these errors were encountered: