213 {
214 float target = 0;
215
217 {
219 pAngle = target;
220
222 }
223 else
224 {
226 {
227 pAngleAdd = pAngle + pAngleAdd - target;
228 pAngle = target;
229 }
230
232 {
234
236 }
237 else
238 {
240 }
241
242 pAngleAdd = pAngleAdd + pAngle;
243 }
244
245 pAngle =
Limit(pAngle, pMin, pMax);
246 pAngleAdd =
Limit(pAngle + pAngleAdd, pMin, pMax) - pAngle;
247
248 return pAngle + pAngleAdd;
249 }
HumanInputController m_pInput
human input
static const float RAD2DEG
static proto float AbsFloat(float f)
Returns absolute value.
static proto float SmoothCD(float val, float target, inout float velocity[], float smoothTime, float maxVelocity, float dt)
Does the CD smoothing function - easy in | easy out / S shaped smoothing.