#Animation first person bug.

1 messages · Page 1 of 1 (latest)

tender root
ripe wigeon
#

what is it doing wrong

carmine abyss
frozen rapids
tender root
#

let me send you the script of the camera

tender root
#

so i was confused why

#

maybe this could help

#

but the flashlight im usin

#

hold up lemme show you

frozen rapids
#

You'll want to add a math.clamp to the pitch variable that makes sure it doesn't

tender root
#

the "Handle is the black part. the "Part" is the glowy sphere.

#

maybe i should add ana invisible handle

finite leafBOT
#

studio** You are now Level 10! **studio

frozen rapids
#

just clamp it between the values of -1 and 1

tender root
#

alright

frozen rapids
#

and hopefully that'll limit it enough

tender root
#

and that will stop the body from going crazy right

frozen rapids
#

most likely

tender root
#

in the server script right

frozen rapids
#

It honestly doesn't matter which

tender root
#

alright

frozen rapids
#

you could change the local pitch variable in the local script to

local pitch = math.clamp(math.asin(lookVector.Y), -1, 1)
tender root
#

okay lemme see

frozen rapids
#

If it doesn't work immediately, try -.9, .9 or -.8, .8

#

Might need to mess with the numbers a bit

#

Personally when doing things like head movement I prefer to just use IKControls. Has built-in limiters that you can set

tender root
#

i tried it

#

it worked it made the head limit rotation

#

but i dont think it made it fix

#

i think the reason was the camera

#

if i put the camera at 45 degrees down. its alright anything less is no.

#

remember only the camera not the head

frozen rapids
#

Hm

#

Wait, does it only turn like that when you're specifically holding the flashlight?

tender root
#

i believe so hold on

#

damn actually no

#

even without anything held it does that

frozen rapids
#

Honestly, I'd just swap to IKControls

tender root
#

hmm alright ill have to reanimate them

frozen rapids
tender root
#

nevermind now

#

i tried debugging

#

i disabled all the scripts that make the head turn vertically too.

#

it still continued

#

so imma see other scripts

#

yep i found it

#

its a camera wobble effect i added for realism. only to the camera though i dont know why it was messing with other parts

frozen rapids
#

oh lol

tender root
#

so hmmmmm what could the new problem be now