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
Axis-based Lineardamping
Re: Axis-based Lineardamping
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.
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.