![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PhysicsPublic.h>
Public Member Functions | |
| FRigidBodyCollisionInfo () | |
| ENGINE_API void | SetFrom (const FBodyInstance *BodyInst, const FVector &InDeltaVelocity=FVector::ZeroVector) |
| ENGINE_API FBodyInstance * | GetBodyInstance () const |
Public Attributes | |
| TWeakObjectPtr< AActor > | Actor |
| TWeakObjectPtr< UPrimitiveComponent > | Component |
| int32 | BodyIndex |
| FName | BoneName |
| FVector | DeltaVelocity |
Information about a specific object involved in a rigid body collision
|
inline |
| FBodyInstance * FRigidBodyCollisionInfo::GetBodyInstance | ( | ) | const |
Get body instance
| void FRigidBodyCollisionInfo::SetFrom | ( | const FBodyInstance * | BodyInst, |
| const FVector & | InDeltaVelocity = FVector::ZeroVector |
||
| ) |
Utility to set up the body collision info from an FBodyInstance
| TWeakObjectPtr<AActor> FRigidBodyCollisionInfo::Actor |
Actor involved in the collision
| int32 FRigidBodyCollisionInfo::BodyIndex |
Index of body if this is in a PhysicsAsset. INDEX_NONE otherwise.
| FName FRigidBodyCollisionInfo::BoneName |
Name of bone if a PhysicsAsset
| TWeakObjectPtr<UPrimitiveComponent> FRigidBodyCollisionInfo::Component |
Component of Actor involved in the collision.
| FVector FRigidBodyCollisionInfo::DeltaVelocity |
Amount by which the linear velocity at the center of mass of this body has changed in the frame of this contact