7 protected static const float INERTIA_THRESHOLD = 0.0002;
9 [
Attribute(defvalue:
"0.08",
desc:
"Inertia strength. Larger values mean more inertia.")]
10 private float m_fInertiaStrength;
12 private vector m_vVelocity;
18 vector velocity = param.transform[3] - param.transformOriginal[3];
21 if (!param.isManualInput && vector.DistanceSq(velocity, param.velocityOriginal) < INERTIA_THRESHOLD)
26 velocity = vector.Lerp(param.velocityOriginal, velocity, progress);
27 vector pos = param.transformOriginal[3] + velocity;
29 param.transform[3] = pos;
34 override bool EOnCameraInit()