Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Physics > FSimpleSuspensionHelpers > ComputeSuspensionForces
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Physics/SimpleSuspension.h |
Include | #include "Physics/SimpleSuspension.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/SimpleSuspension.cpp |
static void ComputeSuspensionForces
&40;
const FVector & LinearVelocity,
const FVector & AngularVelocityRad,
const FVector & WorldCenterOfMass,
const FVector & WorldSuspensionNormal,
const TArray< FVector > WorldSuspensionOrigins,
const TArray< FSimpleSuspensionSpringParams > & SpringParams,
const TArray< float > & SpringDisplacements,
FVector & OutTotalForce,
FVector & OutTotalTorque,
TArray< float > & OutSpringForces
&41;
Remarks
Based on the current state of the system, compute the total force and torque that the suspension system wants to apply to the suspended body, as well as the spring force magnitudes of each support.