Page 1 of 1

Axis-based Lineardamping

Posted: Fri Jun 17, 2011 4:00 am
by Kataan
Hello,

I see Entity only has a single float for lineardamping.

Is it possible to have axis-based lineardamping for Entities?

So you could have different lineardamping values for X, Y and Z.

And if not, why did you decide against it?

Cheers,

Kataan

Re: Axis-based Lineardamping

Posted: Fri Jun 17, 2011 4:10 am
by Norbo
It's not built into the engine since it's a pretty rare use case, and it is easy to do externally. Damping just removes a portion of the momentum each frame; instead of scaling the whole momentum down, scale the axes down independently.

There are also constraints which can act like axis dampers. LinearAxisMotors with a velocity goal of zero do this. Constraint "softness" is inverse damping. If you were making an articulated structure that relied on the damping, this would be the best option.