FSuspensionUtility

Choose your operating system:

Windows

macOS

Linux

References

Module

ChaosVehiclesCore

Header

/Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SuspensionUtility.h

Include

#include "SuspensionUtility.h"

Syntax

struct FSuspensionUtility

Functions

Name Description

Public function Static

float

 

ComputeCriticalDamping

(
    float SpringRate,
    float SprungMass
)

Compute spring damping value that will achieve critical damping

Public function Static

float

 

ComputeDamping

(
    float SpringRate,
    float SprungMass,
    float DampingRatio
)

Compute spring damping value that will achieve the desired damping ratio.

Public function Static

float

 

ComputeNaturalFrequency

(
    float SpringRate,
    float SprungMass
)

Natural frequency of spring in radians/sec - divide by 2Pi to get result in Hz

Public function Static

bool

 

ComputeSprungMasses

(
    const TArray< FVector >& MassSprin...,
    const float TotalMass,
    TArray< float >& OutSprungMasses
)

Setup functionsCompute the distribution of the mass of a body among springs.

Public function Static

bool

 

ComputeSprungMasses

(
    const TArray< FVector >& LocalSpri...,
    const FVector& LocalCenterOfMass,
    const float TotalMass,
    TArray< float >& OutSprungMasses
)

Same as above, but allows the caller to specify spring locations in a local space which is not necessarily originated at the center of mass.