Added: #1469 Config variable to define the maximum speed of the camera in camera animation

--HG--
branch : gsoc2012-fabien
hg/feature/gsoc2012-fabien
Fabien_HENON 12 years ago
parent c2770d9ae5
commit 050f3f644a

@ -179,6 +179,10 @@ public:
/// Function that plays the step
virtual TCameraAnimationInfo updateStep(const TCameraAnimationInfo& currCamInfo)
{
TCameraAnimationInfo camInfo;
// We compute the distance
return currCamInfo;
}

@ -339,6 +339,8 @@ CClientConfig::CClientConfig()
DmWalk = 6.0f; // Default Velocity for the Walk in Ring/DM or Ring/Editor.
DmRun = 20.0f; // Default Velocity for the Run in Ring/DM or Ring/Editor.
MaxCameraAnimationSpeed = 100.0f; // Default maximum speed for camera animation
FlyAccel = 1000.f; // Default Acceleration for the fly, in m.s-2
AllowDebugCommands = false; // Add debug commands at startup
@ -914,6 +916,9 @@ void CClientConfig::setValues()
READ_FLOAT_DEV(DmRun)
// Maximum camera animation speed
READ_FLOAT_DEV(MaxCameraAnimationSpeed);
// Fly
READ_FLOAT_DEV(Fly)

@ -179,6 +179,9 @@ struct CClientConfig
/// Acceleration for the Fly.
float FlyAccel;
/// Maximum speed for camera animation
float MaxCameraAnimationSpeed;
/// Allow debug commands
bool AllowDebugCommands;

Loading…
Cancel
Save