QcEyeHeight Class
The camera's height above the player's feet: it drops to QcPhysics::sneakEyeHeight while the player crouches and rises back when he stands up, at a steady speed over transitionSeconds, like the role model (decision E-961). More...
| Header: | #include <clientcore/camera/QcEyeHeight.h> |
Public Functions
Static Public Members
| const double | transitionSeconds |
Detailed Description
Only the view eases; the aim takes the new height at once (QcPrediction::eyeHeight).
Member Function Documentation
double QcEyeHeight::advance(double target, double seconds)
Moves the height towards target (metres above the feet) by seconds of the transition and returns it. A first call, or a negative seconds, jumps to target.
double QcEyeHeight::height() const
Returns the current height above the feet.
Member Variable Documentation
const double QcEyeHeight::transitionSeconds
Seconds the camera takes from standing to crouching height or back.