- Home /
Why is there still drag when drag is 0?
I'm creating a fairly simple platform game. At the moment, I have my enemy characters working, more or less. However, the system I've implemented is a bit cumbersome with each character having more than one trigger or collider.
Ideally I'd like to put each character under as much physics control as possible, which would remove the need for so much complexity.
I've tested one character under full physics control and given it a physics material. However, although the drag is set to zero, it still slows down gradually - even when not on a platform. This is most evident when the object falls off the side of the object. When it falls, it does so in an arc.
What I need is to be able to maintain a static velocity throughout. The reason that I'm currently having to use more than one collider or trigger per object is to make it easier to determine whether or not the collision is against a floor, a wall or the edge of a platform. If I could put it under physics as much as possible, it would mean I could dispense with all this complexity. However, I can't maintain a standard velocity without setting the velocity on Update, which is not something I really want to do.
What do you mean by "This is most evident when the object falls off the side of the object. When it falls, it does so in an arc." ?
Presumably they have lateral motion when they go off the side of the object, so one would expect gravity to make them to fall in an arc, whether there's drag or not.
I've had to rethink that part of the question. I need to keep the arcing. I need to then re-apply the correct force when it lands on a platform.
The problem therefore is that there's still drag when it's moving on a platform. I'm using Rigidbody.AddForce to give objects an initial push.
Ah - thanks. You put me on the right track. It's not 100% but it's given me something to work with. The only problem now is that there's massive damping when the objects hits a wall. Ins$$anonymous$$d of heading back the direction it came at the same speed, it slows right down.
Your answer
![](https://koobas.hobune.stream/wayback/20220611234116im_/https://answers.unity.com/themes/thub/images/avi.jpg)