192 {
193 float target = 0;
194
196 {
198 pAngle = target;
199
201 }
202 else
203 {
205 {
206 pAngleAdd = pAngle + pAngleAdd - target;
207 pAngle = target;
208 }
209
211 {
213
215 }
216 else
217 {
219 }
220
221 pAngleAdd = pAngleAdd + pAngle;
222 }
223
224 pAngle =
Limit(pAngle, pMin, pMax);
225 pAngleAdd =
Limit(pAngle + pAngleAdd, pMin, pMax) - pAngle;
226
227 return pAngle + pAngleAdd;
228 }
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.