Inconsistant movespeed in CSceneNodeAnimatorCameraFPS
Posted: Wed Jul 30, 2008 7:47 pm
In CSceneNodeAnimatorCameraFPS.cpp, setting the move speed by the constructor is inconsistent with the setMoveSpeed function.
The setMoveSpeed function is simply "MoveSpeed = speed"
however the constructor initializes MoveSpeed by dividing the supplied speed by 1000, "MoveSpeed(moveSpeed/1000.0f)"
Assuming the internal MoveSpeed variable is supposed to be world units per millisecond while the supplied arguments are world units per second, the setMoveSpeed function also needs to divide by 1000.
The setMoveSpeed function is simply "MoveSpeed = speed"
however the constructor initializes MoveSpeed by dividing the supplied speed by 1000, "MoveSpeed(moveSpeed/1000.0f)"
Assuming the internal MoveSpeed variable is supposed to be world units per millisecond while the supplied arguments are world units per second, the setMoveSpeed function also needs to divide by 1000.