I'm trying to use the easeInOutCubic function from easings.net but that does not seem to work as the object just teleports to its destination
function easeInOutCubic(x: number): number {
return x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2;
}
damp3(ref.current.position, p.current, 5, delta, 2, easeInOutCubic)
Changing smoothTime, lowering eps or maxSpeed does not seem to have any effect. What exactly does easing expect? When I try out the included rsqw there is a marginal improvement, with the object teleporting to its target with only a couple of frames in between. When console.loging the t param, it does not seem to follow the typical 0-1 range.
I'm trying to use the
easeInOutCubicfunction from easings.net but that does not seem to work as the object just teleports to its destinationChanging
smoothTime, loweringepsormaxSpeeddoes not seem to have any effect. What exactly doeseasingexpect? When I try out the includedrsqwthere is a marginal improvement, with the object teleporting to its target with only a couple of frames in between. Whenconsole.loging thetparam, it does not seem to follow the typical 0-1 range.