Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
Inheritance Hierarchy
- TVehicleSystem
- FSimpleSuspensionSim
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SuspensionSystem.h |
| Include | #include "SuspensionSystem.h" |
Syntax
class FSimpleSuspensionSim : public TVehicleSystem< FSimpleSuspensionConfig >
Variables
| Type | Name | Description | |
|---|---|---|---|
| int | AveragingCount | ||
| float[10] | AveragingLength | ||
| int | AveragingNum | ||
| float | DisplacementInput | ||
| float | LastDisplacement | ||
| float | LastSpringLength | ||
| FVector | LocalOffset | ||
| FVector | LocalVelocity | ||
| float | SpringDisplacement | ||
| uint32 | SpringIndex | ||
| float | SuspensionForce |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSimpleSuspensionSim
(
const FSimpleSuspensionConfig* SetupIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | |||
| float | GetAveragingLength
(
const int32 LengthIndex |
||
| int32 | |||
| float | |||
| float | |||
| const FVector & | |||
| float | |||
| float | |||
| float | |||
| FVector | GetSuspensionForceVector
(
const FTransform& InTransform |
||
| float | |||
| float | GetTraceLength
(
float WheelRadius |
||
| void | SetAveragingCount
(
const int32 InAveragingCount |
||
| void | SetAveragingLength
(
const int32 LengthIndex, |
||
| void | SetAveragingNum
(
const int32 InAveragingNum |
||
| void | SetLastDisplacement
(
const float InLastDisplacement |
||
| void | SetLastSpringLength
(
const float InLastSpringLength |
||
| void | SetLocalRestingPosition
(
const FVector& InOffset |
||
| void | SetLocalVelocity
(
const FVector& InVelocity |
Set local velocity at suspension position | |
| void | SetLocalVelocityFromWorld
(
const FTransform& InWorldTransform, |
||
| void | SetSpringIndex
(
uint32 InIndex |
||
| void | SetSuspensionLength
(
float InLength, |
#todo: Change This ; Set suspension length after determined from raycast | |
| void | Simulate
(
float DeltaTime |
||
| void | UpdateWorldRaycastLocation
(
const FTransform& BodyTransform, |