UPhysicsCollisionHandler

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UPhysicsCollisionHandler

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsCollisionHandler.h

Include

#include "PhysicsEngine/PhysicsCollisionHandler.h"

Syntax

class UPhysicsCollisionHandler : public UObject

Variables

Name Description

Public variable

TObjectPtr< cla...

 

DefaultImpactSound

Sound to play

Public variable

float

 

ImpactReFireDelay

Min time between effect/sound being triggered

Public variable

float

 

ImpactThreshold

How hard an impact must be to trigger effect/sound

Public variable

float

 

LastImpactSoundTime

Time since last impact sound

Constructors

Name Description

Public function

UPhysicsCollisionHandler

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

DefaultHandleCollision_AssumesLocked

(
    const FRigidBodyCollisionInfo& MyI...,
    const FRigidBodyCollisionInfo& Oth...,
    const FCollisionImpactData& RigidC...
)

Handle a single

Public function Virtual Const

UWorld *

 

GetWorld()

Get the world we are handling collisions for

Public function Virtual

void

 

HandlePhysicsCollisions_AssumesLocked

(
    TArray< FCollisionNotifyInfo >& Pe...
)

Gives game-specific ability to handle and filter all physics collisions in one place.

Public function Virtual

void

 

InitCollisionHandler()

Called after collision handler is allocated for a world.