Skip to content

Using CharacterMovement and CameraLook Scripts

Henry Wang edited this page Jan 26, 2024 · 2 revisions

These two scripts should be used together for the character. Setup the scene with the following.

Hierarchy in Scene

Character Object [CharacterMovement script goes here]
∟Camera [CameraLook script goes here]

CameraLook needs a reference to the PlayerObject since it binds the x-axis look to the character's turning motion, so make sure to set this reference in the Unity editor.

CameraLook Parameters

Clone this wiki locally