#Roblox physics issue

1 messages · Page 1 of 1 (latest)

novel crater
#

Roblox's drag factor in its physics is limiting what i can do with my air movement based game, when i boost forward in the air how do i get it from the left example to the right? FYI the boost is essentially just applying a one time velocity to the player rigid body from the origin point then letting gravity do the rest

slender wren
#

Roblox air movement feels inconsistent because the engine applies built-in air damping that gradually reduces any velocity you set, so a one-time boost won’t hold its speed or direction for long; to fix this you should either continuously override the character’s AssemblyLinearVelocity or use a LinearVelocity constraint with high force for a short duration so the boost keeps its strength despite physics drag, which gives you stable, predictable mid-air dashes instead of the velocity slowly dying out.

novel crater
#

is there a way i can do this easily?

#

because i have a whole code thing set up im not really sure how id implement this im new to all this movement scripting

slender wren
#

wow quick reply thank god

#

Yes—easiest way is to not rebuild your system, just wrap your current boost in a short “velocity lock” so you don’t fight Roblox physics manually.

Instead of one-time AssemblyLinearVelocity, do this simple pattern:

apply your boost velocity
then for ~0.2–0.4 seconds, keep forcing it back every frame using LinearVelocity (or reassigning AssemblyLinearVelocity)
then delete it and return control

The simplest drop-in upgrade is using a LinearVelocity attached to the HumanoidRootPart for a short duration, because it automatically fights drag without you rewriting movement logic. If your system already works, you only change the boost function—not the rest of your code—so your current setup stays intact but the dash becomes consistent and doesn’t decay mid-air.

slender wren
#

u got a problem

errant rapidsBOT
#

studio** You are now Level 7! **studio

dull oxide
#

most chat gpt structured text oat

dull oxide
slender wren
#

just a question are metal trees fine

novel crater
#

wait bro isnt LinearVelocity depreciated tho

#

shouldnt i just use velocity no?

viral yarrow
novel crater
viral yarrow
#

i assume you're talking about linear velocity as in the instance

#

not a property

#

right?

#

if you want to set a small burst of velocity that goes down after a bit, set the humanoid root parts AssemblyLinearVelocity

novel crater
#

no i mean when i change the velocity i just apply velocity directly to the hrp so like its a property no?

novel crater
novel crater
#

so how would it be an instance?

viral yarrow
#

you can insert a linearvelocity into the humanoid root part to have it constantly have velocity and not just 1 small burst

#

you have to change the linearvelocitys property to add the velocity

novel crater
#

wait so hrp doesnt automatically start with linearvelocity?

viral yarrow
#

no it's an instance

novel crater
#

oh yeah and what the difference in just doing the same numbers but w velocity?

viral yarrow
#

velocity is a property that goes down after a short period of time

#

it doesn't last forever

#

it goes back to 0 eventually

#

linearvelocity constantly applies a velocity as long as it's inside of the hrp and has the property set

novel crater
#

ohh shoot

#

wait so im not sure how id make it go down over time tho 😭

viral yarrow
#

apply either assembly linear velocity

#

like set the hrps property

#

or manually lower the velocity

#

in the linearvelocity

novel crater
#

like because im thinking its gonna bug when i try stacking jumps

viral yarrow
#
for i=1, 10do
  LinearVelocity.VectorVelocity /= 1.1
  task.wait()
end
novel crater
#

but i dont want to add a speed cap

viral yarrow
#

this divides the velocity by 1.1 10 times

#

which makes it gradually slow down

novel crater
#

yeah but what if i stack it will that change still to put me back down again?

viral yarrow
#

stack it like how

#

wdym

#

what are you even trying to do here

#

let's start with that

novel crater
#

okay so im looking for a speed based game and if i jump boost one time thats great but what happens if i jump boost again while its already decreasing my velocityu

errant rapidsBOT
#

studio** You are now Level 7! **studio

novel crater
#

or wait will it reset the counter

viral yarrow
#

you can remove the previous line velocity when you jump the second time

novel crater
#

so would i check when i boost if there is one and if there is delete it then run that again?

viral yarrow
#

yeah

novel crater
#

alr swt thanku bro ill try it rn

#

wait last thing what in the player should i parent the velocity to

#

the hrp im assuming?

viral yarrow
#

yeah