UPhysicalMaterial

Inheritance Hierarchy

Syntax

class UPhysicalMaterial : public UObject

Remarks

Physical materials are used to define the response of a physical object when interacting dynamically with the world.

Variables

Name Description

Public variable

bool

 

bOverrideFrictionCombineMode

If set we will use the FrictionCombineMode of this material, instead of the FrictionCombineMode found in the project settings.

Public variable

bool

 

bOverrideRestitutionCombineMode

If set we will use the RestitutionCombineMode of this material, instead of the RestitutionCombineMode found in the project settings.

Public variable

float

 

Density

Object properties.Used with the shape of the object to calculate its mass properties.

Public variable

float

 

DestructibleDamageThresholdScale

How much to scale the damage threshold by on any destructible we are applied to

Public variable

float

 

Friction

Surface properties.Friction value of surface, controls how easily things can slide on this surface (0 is frictionless, higher values increase the amount of friction)

Public variable

TEnumAsByte < EF ...

 

FrictionCombineMode

Friction combine mode, controls how friction is computed for multiple materials.

Public variable

FPhysicsMateria...

 

MaterialHandle

Public variable

UDEPRECATED_Phy ...

 

PhysicalMaterialProperty

Public variable

FPhysxUserData

 

PhysxUserData

Public variable

float

 

RaiseMassToPower

Used to adjust the way that mass increases as objects get larger.

Public variable

float

 

Restitution

Restitution or 'bounciness' of this surface, between 0 (no bounce) and 1 (outgoing velocity is same as incoming).

Public variable

TEnumAsByte < EF ...

 

RestitutionCombineMode

Restitution combine mode, controls how restitution is computed for multiple materials.

Public variable

TEnumAsByte < EP ...

 

SurfaceType

To edit surface type for your project, use ProjectSettings/Physics/PhysicalSurface section

Public variable

float

 

TireFrictionScale

DEPRECATED - Overall tire friction scalar for every type of tire.

Public variable

TArray < FTireFr ...

 

TireFrictionScales

DEPRECATED - Tire friction scales for specific types of tires.

Constructors

Name Description

Public function

UPhysicalMaterial

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function Static

EPhysicalSur ...

 

DetermineSurfaceType

(
    UPhysicalMaterial const* Physi...
)

Determine Material Type from input PhysicalMaterial

Public function

FPhysicsMate...

 

GetPhysicsMaterial()

Get the physics-interface derived version of this material

Public function Static

void

 

RebuildPhysicalMaterials()

Overridden from UObject

Name Description

Public function Virtual

void

 

FinishDestroy()

Called to finish destroying the object.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

References

Module

Engine

Header

Runtime/Engine/Classes/PhysicalMaterials/PhysicalMaterial.h