FCollisionResponse

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "PhysicsEngine/BodyInstance.h"

Syntax

struct FCollisionResponse

Constructors

Name Description

Public function

FCollisionResponse()

Public function

FCollisionResponse

(
    ECollisionResponse DefaultResponse
)

Functions

Name Description

Public function Const

ECollisionRe...

 

GetResponse

(
    ECollisionChannel Channel
)

Returns the response set on the specified channel

Public function Const

const FColli...

 

GetResponseContainer()

Public function

bool

 

ReplaceChannels

(
    ECollisionResponse OldResponse,
    ECollisionResponse NewResponse
)

Replace the channels matching the old response with the new response

Public function

bool

 

SetAllChannels

(
    ECollisionResponse NewResponse
)

Set all channels to the specified response

Public function

bool

 

SetCollisionResponseContainer

(
    const FCollisionResponseContainer&...
)

Set all channels from ChannelResponse Array

Public function

bool

 

SetResponse

(
    ECollisionChannel Channel,
    ECollisionResponse NewResponse
)

Set the response of a particular channel in the structure.

Public function

void

 

SetResponsesArray

(
    const TArray< FResponseChannel >& ...
)

Public function

void

 

UpdateResponseContainerFromArray()

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FCollisionResponse& Other
)

Public function Const

bool

 

operator==

(
    const FCollisionResponse& Other
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss