FRigidBodyContactInfo

Information about one contact between a pair of rigid bodies.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FRigidBodyContactInfo

Remarks

Information about one contact between a pair of rigid bodies.

Variables

Name Description

Public variable

FVector

 

ContactNormal

Normal of contact, points from second shape towards first shape

Public variable

float

 

ContactPenetration

How far the two shapes penetrated into each other

Public variable

FVector

 

ContactPosition

Position of contact, where two shapes intersect

Public variable

UPhysicalMateri...

 

PhysMaterial

The physical material of the two shapes involved in a contact

Constructors

Name Description

Public function

FRigidBodyContactInfo()

Public function

FRigidBodyContactInfo

(
    const FVector& InContactPosition,
    const FVector& InContactNormal,
    float InPenetration,
    UPhysicalMaterial* InPhysMat0,
    UPhysicalMaterial* InPhysMat1
)

Functions

Name Description

Public function

void

 

SwapOrder()

Swap the order of info in this info

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