Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Physics
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Physics/SimpleSuspension.h |
| Include | #include "Physics/SimpleSuspension.h" |
Syntax
struct FSimpleSuspension
Variables
| Type | Name | Description | |
|---|---|---|---|
| FSimpleSuspensionParams | SuspensionParams | ||
| FSimpleSuspensionState | SuspensionState |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSimpleSuspension
(
const FSimpleSuspensionParams& SuspensionParams |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ComputeSpringParams
(
const float TotalMass, |
Compute sprung masses, stiffnesses, damping, etc. | |
| void | Setup
(
const FSimpleSuspensionParams& InSuspensionParams |
Take full set of parameters. They might be invalid, who cares. | |
| void | Setup
(
const FSimpleSuspensionParams& InSuspensionParams, |
Copy in a full set of parameters, and then compute the spring params and overwrite whatever we got for that | |
| void | Update
(
const FTransform& LocalToWorld, |
Compute suspension compressions, individual spring forces, and the total force that the suspension system wants to apply to the body. |