#camera movement

1 messages · Page 1 of 1 (latest)

final surge
#

i applied gravity to my character but my camera started to rotate around itself as same time it is turning around player ! how do i fix it.
this is my Code https://gdl.space/osipakiniv.cs

sage coyote
#

The issue might be due to the camera's rotation being directly linked to the player's rotation. To fix this, separate the camera control from the player control. Ensure that the camera script or method follows the player's position but does not mirror the player's rotation. Use Quaternion.LookRotation for smooth camera orientation towards the player, and check your input handling to ensure mouse movements only affect the camera, not the player's rotation. If the problem persists, isolate parts of your code to pinpoint the issue.