NewtonCalculateSpringDamperAcceleration
Contents
NewtonCalculateSpringDamperAcceleration
dFloat NewtonCalculateSpringDamperAcceleration (dFloat dt, dFloat ks, dFloat x, dFloat kd, dFloat s)
Usage
Calculates the acceleration to satisfy the specified the spring damper system.
Parameters
- dFloat dt
- dFloat ks
- dFloat x
- dFloat kd
- dFloat s
Return
- dFloat
Description
- return: the spring acceleration.
- the acceleration calculated by this function represent the mass, spring system of the form
- a = -ks * x - kd * v.
Remarks
partial description of NewtonCalculateSpringDamperAcceleration and dt parameter