#My character is a first person shooter

1 messages · Page 1 of 1 (latest)

light field
#

@true pebble Any thoughts?

strange fable
#

What do u mean with "jittery"? A possible option is that ur position is not updated fast enough. Hears like this

light field
#

Yes, position doesn't seem to update fast enough

#

How do I solve that. I've tried getting the position every frame and I plug that position into fixedupdate, but it still does not help. I've also enabled interpolation for the rb

#

@strange fable

strange fable
#

By using fixedUpdate u have to look what call time is set

light field
#

I think its the default update delta

#

I havent changed it.

#

Or should I dump character controller and go with a rb for my character as-well?

light field
#

Or what if we use time.fixeddelaTime instead of deltatime for the character?

strange fable
#

If updating is really the problem

light field
#

Tried that, fixedupdate is way too slow for smooth character movement. I don't want to adjust the deltatime for fixed updates tho.

#

I think I'm gonna post this on the forums

strange fable
#

otherwise it updated every 2 secounds I guess

light field
#

I think its 0.02, if I go any lower, then my game cant be responsive

#

I'm looking into something like interpolation

strange fable
#

Hm alr

light field
#

I tried loweing it, the problem does not resolve :(

#

!Solved
Used an additional SmoothDamp function inside of Update() before feeding it into FixedUpdate() and it works without jitters

errant haloBOT
true pebble