Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/FSuspensionUtility > API/Runtime/ChaosVehiclesCore/FSuspensionUtility/ComputeSprungMasses
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SuspensionUtility.h |
| Include | #include "SuspensionUtility.h" |
| Source | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Private/SuspensionUtility.cpp |
static bool ComputeSprungMasses
&40;
const TArray< FVector > & MassSpringPositions,
const float TotalMass,
TArray< float > & OutSprungMasses
&41;
Remarks
Setup functionsCompute the distribution of the mass of a body among springs. This method assumes that spring positions are given relative to the center of mass of the body, and that gravity occurs in the local -Z direction.
Returns true if it was able to find a valid mass configuration. If only one or two springs are included, then a valid configuration may not result in a stable suspension system - a bicycle or pogostick, for example, which is not perfectly centered may have a valid sprung mass configuration without being stable.