本文整理汇总了C++中CHandlingEntry::GetMaxVelocity方法的典型用法代码示例。如果您正苦于以下问题:C++ CHandlingEntry::GetMaxVelocity方法的具体用法?C++ CHandlingEntry::GetMaxVelocity怎么用?C++ CHandlingEntry::GetMaxVelocity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHandlingEntry
的用法示例。
在下文中一共展示了CHandlingEntry::GetMaxVelocity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Write
//.........这里部分代码省略.........
BitStream.Write ( &alpha );
// Write headlight color
SColor color = pVehicle->GetHeadLightColor ();
if ( color.R != 255 || color.G != 255 || color.B != 255 )
{
BitStream.WriteBit ( true );
BitStream.Write ( color.R );
BitStream.Write ( color.G );
BitStream.Write ( color.B );
}
else
BitStream.WriteBit ( false );
// Write handling
if ( g_pGame->GetHandlingManager()->HasModelHandlingChanged ( static_cast < eVehicleTypes > ( pVehicle->GetModel() ) )
|| pVehicle->HasHandlingChanged() )
{
BitStream.WriteBit ( true );
SVehicleHandlingSync handling;
CHandlingEntry* pEntry = pVehicle->GetHandlingData ();
handling.data.fMass = pEntry->GetMass ();
handling.data.fTurnMass = pEntry->GetTurnMass ();
handling.data.fDragCoeff = pEntry->GetDragCoeff ();
handling.data.vecCenterOfMass = pEntry->GetCenterOfMass ();
handling.data.ucPercentSubmerged = pEntry->GetPercentSubmerged ();
handling.data.fTractionMultiplier = pEntry->GetTractionMultiplier ();
handling.data.ucDriveType = pEntry->GetCarDriveType ();
handling.data.ucEngineType = pEntry->GetCarEngineType ();
handling.data.ucNumberOfGears = pEntry->GetNumberOfGears ();
handling.data.fEngineAcceleration = pEntry->GetEngineAcceleration ();
handling.data.fEngineInertia = pEntry->GetEngineInertia ();
handling.data.fMaxVelocity = pEntry->GetMaxVelocity ();
handling.data.fBrakeDeceleration = pEntry->GetBrakeDeceleration ();
handling.data.fBrakeBias = pEntry->GetBrakeBias ();
handling.data.bABS = pEntry->GetABS ();
handling.data.fSteeringLock = pEntry->GetSteeringLock ();
handling.data.fTractionLoss = pEntry->GetTractionLoss ();
handling.data.fTractionBias = pEntry->GetTractionBias ();
handling.data.fSuspensionForceLevel = pEntry->GetSuspensionForceLevel ();
handling.data.fSuspensionDamping = pEntry->GetSuspensionDamping ();
handling.data.fSuspensionHighSpdDamping = pEntry->GetSuspensionHighSpeedDamping ();
handling.data.fSuspensionUpperLimit = pEntry->GetSuspensionUpperLimit ();
handling.data.fSuspensionLowerLimit = pEntry->GetSuspensionLowerLimit ();
handling.data.fSuspensionFrontRearBias = pEntry->GetSuspensionFrontRearBias ();
handling.data.fSuspensionAntiDiveMultiplier = pEntry->GetSuspensionAntiDiveMultiplier ();
handling.data.fCollisionDamageMultiplier = pEntry->GetCollisionDamageMultiplier ();
handling.data.uiModelFlags = pEntry->GetModelFlags ();
handling.data.uiHandlingFlags = pEntry->GetHandlingFlags ();
handling.data.fSeatOffsetDistance = pEntry->GetSeatOffsetDistance ();
//handling.data.uiMonetary = pEntry->GetMonetary ();
//handling.data.ucHeadLight = pEntry->GetHeadLight ();
//handling.data.ucTailLight = pEntry->GetTailLight ();
handling.data.ucAnimGroup = pEntry->GetAnimGroup ();
BitStream.Write ( &handling );
}
else
BitStream.WriteBit ( false );
break;
}
case CElement::MARKER:
{
CMarker* pMarker = static_cast < CMarker* > ( pElement );