#Gravity, trajectories and projectiles etc.

1 messages · Page 1 of 1 (latest)

keen wind
#

So im making a battleground game and i faced the problem where my character punches the enemy and it should have a smooth trajectory (yk like in the strongest battlegrounds) with low gravity.

I don't know what i should do.

I tried:

  1. Impulse (didnt work well)

  2. Linearvelocity (still thinking about it)

  3. Updating position manually with runservice on the server (faced problems where roblox was applyijg physics on character (i think i just didnt anchor it))

  4. The currently one im using: applying VectorForce to slow the gravity.

Which one should I use? I also want to add the "bouncing" when character hits the wall while flying on a high speed. Please lemme know what you think and how would you do it if you was having my problem. Thank you.

proper bloom
#

simulate it👍

#

funny coincidence i just had to solve this exact problem

#

(for a different type of game, but still)

#

make a module to do all that math unbound from roblox's prexisting systems

#

it's worth it

keen wind
#

but how?

#

what am i supposed to use?

#

linearvelocity, or the calculations on runservice?

#

or anything else?
answer pld

#

pls*

keen wind
#

hello?

proper bloom
#

dude i was at school

#

anyway, you dont use linearvelocity or calculations on runservice

#

literally just have a module that does the math

#

you can find all the math you need online

keen wind
#

i realize what you mean but how? Bro, module is not a system itself, WHAT do i need to use to apply that math bro?

#

there must be literally something that must APPLY the calculations that module does

proper bloom
#

the functions

keen wind
#

Bro. Are you even a scripter? Do you know what you talk about bro? What are functions supposed to do to make it? Calculate the position? Calculate the vectorforce?