#How does one properly make a knockback system?

1 messages · Page 1 of 1 (latest)

fathom anvil
#

I have tried multiple methods, each one has its own problems:

  1. AssemblyLinearVelocity - doesn't work on players, also affected by ground friction, meaning that characters in the air fly way further than ones on the ground.

  2. LinearVelocity - doesn't feel natural, also doesn't work on players (networkownership bs)

  3. ApplyImpulse - same as assemblylinearvelocity

  4. ApplyImpulse (sent to and executed by client) - works on players, however it doesnt work on npcs, also suffers from ground friction

lean heronBOT
#

studio** You are now Level 1! **studio

sullen jungle
#

lineforce?

#

or change friction property of ground to 0 ig

maiden hamlet
#

could lerp the offset with time

#

knockback is just a directional movement incremenet afterall

#

like theres no need to involve physics...

upbeat drift
#

:ApplyImpulse() my beloved

lean heronBOT
#

studio** You are now Level 29! **studio

upbeat drift
#

oh fucking finally cuh

#

when was the last time i leveled up

#

jokes aside

#

u sure its a problem related to these 4 things