#idk
1 messages · Page 1 of 1 (latest)
thanks
The character's position is like 100, 500, 1000
or something
Is your map that big?
idk
but when i go off a slope. (you can see the hills and stuff) when i go of one of them it just float's
up?
ok
doesn't go down a hill as you'd expect
sameeee like i thought bout adding gravity to it but idk if u can do that
Actually
and since this is my 4th day on unity idk much
go to edit>project settings>physics
then at the top there'll be a Vector3 that shows gravity
try making the y be something like -100
nope
huh
doesn't work
wait maybe the char controller freezes rigidbody in playmode
press play, then pause it, and check the RB's values
they stay the same
If that doesn't work, I think you'll have to try making your own gravity or ask a question on Unity Answers
this is the issue
OMG I SO DUM
I actually had this problem once
It's not the Rigidbody's fault, it's the animator's
i dont think so
i dont think i am using animations
dm it to me if u want
no
wait
one sec
if(!controller.isGrounded){
direction += Physics.gravity
}
can you not send it in a this?
I tried using backticks but when I did it would send and then dissapear
I think I misspelled that
if(!controller.isGrounded){ direction += Physics.gravity }
finally
what do i do with that?
put it in update right after you declare moveDir
instead of direction use moveDir though
like this?
Ready to give up lol
nope but i put it in like this
switch direction for moveDir
it works but when i let go of w it floats up a little
yup
thx
?
add // at the beginning of the if statement
?
ye
also do the same thing to the brackets that surround the stuff inside the if statemant
the one that starts like this
im lost
ok
um
can you send the text of the script
not img but copy paste the text
ye I had the same problem
bruh ðŸ˜
try it without code tags
nope
ok I'm back
nope
ok
what
It took 40 mins but yay
thx
that's what they all say
ðŸ˜
anyway lmao when i move my mouse left it moves the camera right and when i move it right it move left
there is non there's just that character movement script
I'm kinda guessing by now but if that deosn't work then post question on Unity Answers
ok but does it go in the right direction
do you have any clue on how to make it jump .-. or is that a separate thing
yea
:p
Also for jump try asking in #💻┃code-beginner
Alr
i can't move left or right
and the camera seems odd
idk how to describe it but it feels odd
um go back to this