#jerky camera making me annoyed

1 messages · Page 1 of 1 (latest)

minor solstice
#
  • not parented to the player in any way
#
  • configuration of both components in the camera
#
  • camera controller's code
#
  • "lock camera to head" code
topaz gale
#

After you remove that make sure to make your sensitivity multipliers about 50-100x smaller

minor solstice
#

thank you osmal ❤️
i feel like an idiot now lol

#

been struggling with this for about an hour

topaz gale
#

This mouse-deltatime thing is one of the most common mistakes because of some big youtubers (like Brackeys) pushed it and also ChatGPT suggests it without a fail

minor solstice
#

i think i actually got it from just thinking "oh yeah, i should just multiply everything by deltatime 😃! for no reason! good job me :D"

and when i was struggling with it i ended up caving and asking chatgpt which didnt friggin help obviously :/

topaz gale
#

Yeah it's something I actually did too many years ago (before brackeys and LLMs) because it sounded like the right thing to do lol

topaz gale
earnest garden
#

also, configure your ide

topaz gale
#

Hard to tell from a video

earnest garden
#

!vscode

severe cosmosBOT
minor solstice
minor solstice
#

mainly because i like to actually use my brain and suffer from my mistakes

earnest garden
#

this isn't about the AI suggestions

minor solstice
#

oh yeah

earnest garden
#

it's autocomplete per-word

minor solstice
#

errors are underlined in red, yes

earnest garden
#

probably just syntax errors

#

it's clearly not configured properly

#

you don't have proper syntax highlighting

#

try doing transform.position = 0;, see if that errors

topaz gale
minor solstice
earnest garden
#

that looks like it's outside the class

#

that would be a syntax error

#

put it in Start

#

you should have this kind of autocomplete box - this is called intellisense, it doesn't write code for you, it just helps you write code faster

#

(if the icon on the left is just abc, that's not configured properly.)

minor solstice
#

okay so turns out it isnt set up properly

earnest garden
#

yeah

earnest garden
#

(or you could have the camera be a child of the player, tbh)

minor solstice
#

for some weird reason when the camera is the child of the player i cannot look up or down

earnest garden
#

if orientation is also the player transform, you'd need to set its rotation first, and then set the current rotation (or use local rotations)