LinearDrag in FP3

Topics: Developer Forum, User Forum
Apr 18, 2010 at 4:21 AM

Another thread about porting from FP2.1 to FP3...

I'm writing a top-down space game (no gravity), and in FP2.1 I'm using LinearDrag to slow the character down. In FP3 there's LinearDamping, but no LinearDrag.

As a workaround, I'm applying linear drag manually each step:

body.ApplyForce(-1f * body.LinearVelocity)

but I'd prefer something in the engine...