biyaniM / ALICE-IN-WONDERLAND-professional-nappers

Single Player, 3D Platformer movement-based game with Color and Level Mechanics with WebGL Builds
6 stars 1 forks source link

Disable Camera/ mouse/ right stick movement #18

Closed biyaniM closed 2 years ago

biyaniM commented 2 years ago

Need to disable the camera movement with the mouse/ right joystick. This forces the character to just use movement keys.

biyaniM commented 2 years ago

Set the following Cinemachine Virtual Camera component Settings. The main change was making the Body type to "Framing Transposer" with 0 offsets. With this, the camera will only follow the configured frame of the game. Cinemachine Settings

After this, changed the camera angle to look down on the character. Following are the settings of the TPPAimCamera's Transform component. TPPPAimCamera is what the MainCamera uses for character follow in the scene. Transform Setting