UPhysicsCollisionHandler

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

USoundBase *...

 

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback