Navigation
API > API/Runtime > API/Runtime/Engine
Information about a specific object involved in a rigid body collision
| Name | FRigidBodyCollisionInfo |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/PhysicsPublic.h |
| Include Path | #include "PhysicsPublic.h" |
Syntax
struct FRigidBodyCollisionInfo
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigidBodyCollisionInfo() |
PhysicsPublic.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Actor | TWeakObjectPtr< AActor > | Actor involved in the collision | PhysicsPublic.h | |
| BodyIndex | int32 | Index of body if this is in a PhysicsAsset. INDEX_NONE otherwise. | PhysicsPublic.h | |
| BoneName | FName | Name of bone if a PhysicsAsset | PhysicsPublic.h | |
| Component | TWeakObjectPtr< UPrimitiveComponent > | Component of Actor involved in the collision. | PhysicsPublic.h | |
| DeltaVelocity | FVector | Amount by which the linear velocity at the center of mass of this body has changed in the frame of this contact | PhysicsPublic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBodyInstance * GetBodyInstance() |
Get body instance | PhysicsPublic.h | |
void SetFrom
(
const FBodyInstance* BodyInst, |
Utility to set up the body collision info from an FBodyInstance | PhysicsPublic.h |