#camera is still in the air when Jump

34 messages · Page 1 of 1 (latest)

stable finch
#

can you post a video this thing happening?

#

also, what is calling the process_CamBob function?

shell mirage
stable finch
#

where/how is ObjCamPos defined?

shell mirage
stable finch
#

so when the player lands on the ground, is the # THE PLAYER IS NOT MOVING portion being called?

#

oh, and what is CamBobUpDown? how is that defined?

shell mirage
#

if need full code i will send a text

stable finch
#

ok, then i think the expression Vector3.UP * sin(cam_bob) * CamBobUpDown * .1 is quite small... like less than a pixel

shell mirage
#

Does this mean I should raise a number?

stable finch
#

oh, and it's also always pointing up, right? because cam_bob is really small, so sin of it is a really small positive number

#

so i think the PLAYER NOT MOVING is just ever so slightly moving the camera up all the time????

shell mirage
stable finch
#

what's your goal with using the sin function so much?

stable finch
#

hmmm yeah, i'm honestly having trouble understanding how your code is structured. do you have it stored online in some way where you can share the whole project?

shell mirage
stable finch
#

i could probably sort through it a little easier that way

shell mirage
stable finch
#

yeah, if you're cool with it, post it on github, and share the link with me. i'd be happy to take a closer look

shell mirage
#

but the problem is begin when i was add sound system

stable finch
#

oh, there wasn't a problem before you did anything with audio?

shell mirage
#

yah

stable finch
#

oh weird

#

i would guess that adding audio-related nodes to the scene tree would not affect anything to do with camera movement. can you remove the audio-related code from the game temporarily to see if you can get back to a working camera system?

#

or even just comment out whatever code you added?

stable finch
#

cool, i gotta go get some groceries, but i'll be back later

shell mirage
#

before

#

Thank you for pointing out the stupid mistake I madegdyeet