#BodyVelocity/LinearVelocity distance being fps dependent

1 messages · Page 1 of 1 (latest)

glass harness
#

I have tried several methods, such as task.wait(1/60), and using different 'wait'(s) but nothing is working.

real grove
#

One u got it under heartbeat

#

So you waiting prob results in code being run twice

#

Cuz prev didn't finish

#

And u don't have debounce for velocity

#

Wait

#

Server or client

glass harness
#

Client

real grove
#

Alright

#

Read my messages

#

And maybe try while loop instead of heartbeat?

glass harness
#

Hm i'll try

real grove
glass harness
#

BodyVelocity/LinearVelocity distance being fps dependent

real grove
#

Cuz u don't need exactly 60/s right

#

Just for it to be same

#

For everyone

glass harness
#

I just want the distance to be the same independent of fps

#

with anything higher than 60 I go a shorter distance

real grove
#

Try the while loop ig

rich copper
#

You people heard of deltaTime?

glass harness
#

I have, I don't know how to make use of it

rich copper
#

btw

#

Have you observed the effect of fps

#

on the Object led by LinearVelocity?

glass harness
#

I'm assuming you must mean how the fps effects the velocity of object moved by LinearVelocity?

rich copper
#

Bro I asked a simple question

#

You just want to make sure before implementing it?

#

Cuz you think fps difference might impact LV or BV?

glass harness
#

No, I AM implementing it. FPS is affecting the distance/velocity of it and i'm trying to figure out how to make fps not have an affect on LV or BV

rich copper
#

Brother

#

Roblox already handles LV and BV separately

#

in the physics engine

#

And it is already framerate independent

glass harness
#

Then for what reason am I going a different distance when I have higher fps?

rich copper
#

You're not solely using LV

#

proly

rich copper
glass harness
#

Yes

wheat dragon
rich copper
glass harness
#

I'm using bv

#

not lv

#

however, using lv shares the same problem

rich copper
#

omg...

#

Who wrote this?

glass harness
#

Dashes is the only thing I didn't know how to make so, I took it from a tutorial

#

Is it that bad?

rich copper
#

I mean

#

It fumed my brain enough

#

So.

#

are we fixing it here?

#

cuz im free

glass harness
#

I would appreciate it

rich copper
#

First off. Please switch to LV

#

idk i just dont like deprecated stuff

#

btw

#

You wanna learn how to code dashes?

#

or just want the job done?

glass harness
#

I would much prefer to know how to code for future reference

rich copper
#

i see...

#

u see, im not a great teacher, les still try

#

So first off, the LinearVelocity thingy

#

You just set its Velocity ones

#

yk about ALV?

glass harness
#

Yeah

rich copper
#

AssemblyLinearVelocity?

#

You treat it like that

#

But its different

#

it doesnt change once u set it up

#

unless you change the value again

glass harness
#

I see

#

Though I should note, once more I just know of ALV I haven't worked with it

rich copper
#

check ur dms...