UTireConfig

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

PhysXVehicles

Header

/Engine/Plugins/Runtime/PhysXVehicles/Source/PhysXVehicles/Public/TireConfig.h

Include

#include "TireConfig.h"

Syntax

UCLASS()
class UTireConfig : public UDataAsset

Constructors

Name Description

Public function

UTireConfig()

Functions

Name Description

Public function

float

 

GetFrictionScale()

Getter for FrictionScale

Public function

int32

 

GetTireConfigID()

Getter for TireConfigID

Public function

float

 

GetTireFriction

(
    UPhysicalMaterial* PhysicalMat...
)

Get the friction for this tire config on a particular physical material

Protected function

void

 

NotifyTireFrictionUpdated()

Add this tire type to the TireConfigs array

Public function

void

 

SetFrictionScale

(
    float NewFrictionScale
)

Setter for FrictionScale

Public function

void

 

SetPerMaterialFrictionScale

(
    UPhysicalMaterial* PhysicalMat...,
    float NewFrictionScale
)

Set friction scaling for a particular material

Overridden from UObject

Name Description

Public function Virtual

void

 

BeginDestroy()

Called before destroying the object.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Respond to a property change in editor

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, but before the config has been loaded, etc.

Constants

Name

Description

AllTireConfigs

All loaded tire types - used to assign each tire type a unique TireConfigID.