191 {
192 float target = 0;
193
195 {
197 pAngle = target;
198
200 }
201 else
202 {
204 {
205 pAngleAdd = pAngle + pAngleAdd - target;
206 pAngle = target;
207 }
208
210 {
212
214 }
215 else
216 {
218 }
219
220 pAngleAdd = pAngleAdd + pAngle;
221 }
222
223 pAngle =
Limit(pAngle, pMin, pMax);
224 pAngleAdd =
Limit(pAngle + pAngleAdd, pMin, pMax) - pAngle;
225
226 return pAngle + pAngleAdd;
227 }
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.