setConstantForce - 18684092/Steering-Wheel-Project GitHub Wiki
Access: Private
Prototype: bool setConstantForce(Uint32 mS, Uint16 lvl, int dir, Uint32 dly, Uint32 aLen, Uint16 aLvl, Uint32 fLen, Uint16 fLvl)
Parameters: Uint32 mS, aLen, fLen and dly are times in milli Seconds. Uint16 lvl, aLvl and fLvl are effect strengths.
Return Value: True if the effect successfully uploaded to the wheel controller, false otherwise.
Description: The function sets and uploads LEFT and RIGHT forces to the wheel. It is called via setLeft() and setRight(). aLvl, fLvl, aLen and fLen are part of the envelope.
Note: This function does not run an effect. It requires runEffect() to be called after being setting up via setLeft() and setRight().
Related Functions: setCondition(), setConstantForce, setPeriod(), setDamper(), setSpring(), setFriction(), setInertia(), setConditionType(), setPeriodType()