Skip to main content
6 events
when toggle format what by license comment
Oct 5, 2021 at 16:21 comment added DMGregory @Notbad the drag parameter maps to the "linear damping" value in the underlying Box2D physics engine, which you can find discussed in greater detail in previous Q&A
Oct 5, 2021 at 16:07 history edited Acme Nerd Games CC BY-SA 4.0
should be FixedUpdate in example script -- fixed (no pun intended)
Oct 5, 2021 at 16:04 comment added Acme Nerd Games I agree the first approach feels a little hacky but after doing a few experiments I actually felt it gave better results than the second method. I haven't tried Philipp's suggestion yet to change the drag coefficient during FixedUpdate, but it seems like a promising idea.
Oct 5, 2021 at 15:42 history edited Acme Nerd Games CC BY-SA 4.0
Added example script to demostrate how to add lateral drag only to a RB2D
Oct 5, 2021 at 15:40 comment added Notbad I thought about first possility but seems too hacky. The second one could be better but I would like to know how unity applies drag to a rb. It is just a matter of decreasing the velocity magnitude by the dragging?
Oct 5, 2021 at 14:59 history answered Acme Nerd Games CC BY-SA 4.0