FSimpleSuspensionSim

Choose your operating system:

Windows

macOS

Linux

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

Name Description

Protected variable

int

 

AveragingCount

Protected variable

float[10]

 

AveragingLength

Protected variable

int

 

AveragingNum

Protected variable

float

 

DisplacementInput

Protected variable

float

 

LastDisplacement

Protected variable

float

 

LastSpringLength

Protected variable

FVector

 

LocalOffset

Protected variable

FVector

 

LocalVelocity

Protected variable

float

 

SpringDisplacement

Protected variable

uint32

 

SpringIndex

Protected variable

float

 

SuspensionForce

Constructors

Name Description

Public function

FSimpleSuspensionSim

(
    const FSimpleSuspensionConfig*...
)

Functions

Name Description

Public function Const

const FVecto...

 

GetLocalRestingPosition()

Public function

float

 

GetNormalizedLength()

Public function

float

 

GetSpringLength()

Public function Const

float

 

GetSuspensionForce()

Public function

FVector

 

GetSuspensionForceVector

(
    const FTransform& InTransform
)

Public function

float

 

GetSuspensionOffset()

Public function

float

 

GetTraceLength

(
    float WheelRadius
)

Public function

void

 

SetLocalRestingPosition

(
    const FVector& InOffset
)

Public function

void

 

SetLocalVelocity

(
    const FVector& InVelocity
)

Set local velocity at suspension position

Public function

void

 

SetLocalVelocityFromWorld

(
    const FTransform& InWorldTransform,
    const FVector& InWorldVelocity
)

Public function

void

 

SetSpringIndex

(
    uint32 InIndex
)

Public function

void

 

SetSuspensionLength

(
    float InLength,
    float WheelRadius
)

#todo: Change This ; Set suspension length after determined from raycast

Public function

void

 

Simulate

(
    float DeltaTime
)

Public function

void

 

UpdateWorldRaycastLocation

(
    const FTransform& BodyTransform,
    float WheelRadius,
    FSuspensionTrace& OutTrace
)