UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRigidBodyContactInfo Struct Reference

#include <EngineTypes.h>

Public Member Functions

 FRigidBodyContactInfo ()
 
 FRigidBodyContactInfo (const FVector &InContactPosition, const FVector &InContactNormal, float InPenetration, bool bInProbe, UPhysicalMaterial *InPhysMat0, UPhysicalMaterial *InPhysMat1)
 
ENGINE_API void SwapOrder ()
 

Public Attributes

FVector ContactPosition
 
FVector ContactNormal
 
float ContactPenetration
 
bool bContactProbe
 
TObjectPtr< class UPhysicalMaterialPhysMaterial [2]
 

Detailed Description

Information about one contact between a pair of rigid bodies.

Constructor & Destructor Documentation

◆ FRigidBodyContactInfo() [1/2]

FRigidBodyContactInfo::FRigidBodyContactInfo ( )
inline

◆ FRigidBodyContactInfo() [2/2]

FRigidBodyContactInfo::FRigidBodyContactInfo ( const FVector InContactPosition,
const FVector InContactNormal,
float  InPenetration,
bool  bInProbe,
UPhysicalMaterial InPhysMat0,
UPhysicalMaterial InPhysMat1 
)
inline

Member Function Documentation

◆ SwapOrder()

void FRigidBodyContactInfo::SwapOrder ( )

Swap the order of info in this info

Member Data Documentation

◆ bContactProbe

bool FRigidBodyContactInfo::bContactProbe

Was this contact generated by a probe constraint

◆ ContactNormal

FVector FRigidBodyContactInfo::ContactNormal

Normal of contact, points from second shape towards first shape

◆ ContactPenetration

float FRigidBodyContactInfo::ContactPenetration

How far the two shapes penetrated into each other

◆ ContactPosition

FVector FRigidBodyContactInfo::ContactPosition

Position of contact, where two shapes intersect

◆ PhysMaterial

TObjectPtr<class UPhysicalMaterial> FRigidBodyContactInfo::PhysMaterial[2]

The physical material of the two shapes involved in a contact


The documentation for this struct was generated from the following files: