#because

1 messages · Page 1 of 1 (latest)

frosty obsidian
#

i was sharing with my friends

#

i use 165 fps

#

they use 60

#

and the it turns way too slowly for tthem

#

also this is my first game

bleak knot
#

multiply rot by deltatime then

frosty obsidian
#

i have no idea what im doing

bleak knot
#

and put it in update

carmine spear
#

deltatime negates the frame rate

frosty obsidian
#

did i not

bleak knot
#

no you didn't

frosty obsidian
oak rivet
#

Only mouse input shouldnt be multiplied by deltaTime

frosty obsidian
#

yeah

#

its not

bleak knot
#

void Update {
if(key pressed){
rotation += whatever * Time.deltaTime
}
}

frosty obsidian
#

anymore

carmine spear
#

fixed update shouldnt have input i guess

#

but not sure

bleak knot
#

yes

#

no input in fixedupdate

peak oxide
#

No, it shouldn't . . .

frosty obsidian
#

😵‍💫

bleak knot
#

haha

carmine spear
#

the problem is the timing of fixed update

#

it doesnt fit with fixed update

bleak knot
#

inputs ^

carmine spear
#

the input

bleak knot
#

👍

frosty obsidian
#

explain in dumbass terms

peak oxide
#

You can press and let go of jump before FixedUpdate runs and it won't register the jump . . .

bleak knot
#

fixed update doesn't always run

#

so inputs won't register sometimes

frosty obsidian
#

ok

carmine spear
#

fixed update doesnt happen each frame

bleak knot
#

runs alongside the physics engine

carmine spear
#

so when you press on Frame X button, but frame X has no fixed update

#

then nothing happens

#

..in dumbass terms

bleak knot
#

frame X isn't running the fixed update somtimes

frosty obsidian
#

ok

carmine spear
#

but your physics code

#

should stay in fixed update

frosty obsidian
#

yez

peak oxide
bleak knot
#

yes

#

I meant like

#

it doesn't run every frame

#

well

#

you get what I mean

frosty obsidian
#

does it still happen

#

if it happens between frames

bleak knot
#

I don't think

oak rivet