Navigation
API > API/Runtime > API/Runtime/Engine
Interface representing the owner of a FBodyInstance.
| Name | IPhysicsBodyInstanceOwner |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h |
| Include Path | #include "PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h" |
Syntax
class IPhysicsBodyInstanceOwner
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IPhysicsBodyInstanceOwner() |
PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool DoesSocketExistOnPhysicsOwner
(
FName InSocketName |
Checks if a socket of the name passed in exists on the object owning the body instance | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
TArray< Chaos::FPhysicsObject * > GetAllPhysicsObjects() |
Returns all physics objects associated to the physics body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
FBodyInstance * GetBodyInstance
(
FName BoneName, |
Returns the body instance of the body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
ECollisionEnabled::Type GetCollisionEnabled() |
Returns the form of collision for this body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
ECollisionChannel GetCollisionObjectType() |
Returns the channel that the body instance owner belongs to. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
ECollisionResponse GetCollisionResponseToChannel
(
ECollisionChannel Channel |
Gets the response type given a specific channel. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UMaterialInterface * GetMaterial
(
int32 Index |
Returns the body instance owner material for the provided material index. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
int32 GetNumMaterials() |
Returns the body instance owner number of materials. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UBodySetup * GetPhysicsBodySetup() |
Return the BodySetup to use for this body instance owner (single body case) | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UMaterialInterface * GetPhysicsMaterialBase() |
Returns the body instance owner mesh material. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UPhysicalMaterial * GetPhysicsMaterialOverride() |
Returns the body instance's physics material override. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
Chaos::FPhysicsObject * GetPhysicsObjectById
(
Chaos::FPhysicsObjectId Id |
Returns a physics object corresponding to the specified Id. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UObject * GetPhysicsOwnerAttachmentRoot() |
Get the attachment root of the body instance owner object | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
FTransform GetPhysicsOwnerSocketTransform
(
FName InSocketName |
Get world-space socket transform of the socket matching InSocketName. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
FTransform GetPhysicsOwnerTransform() |
Returns the transform of this body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
FVector GetPhysicsOwnerVelocity () |
Returns velocity of body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UObject * GetSourceObject() |
Returns the source UObject of this body instance owner. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
UObject * GetSourceObjectOwner() |
Returns the owner of the source object for the body instance | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
const FWalkableSlopeOverride & GetWalkableSlopeOverride() |
Returns the slope override struct for this physics body instance. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
bool IsMultiBodyOverlap () |
If true, this body instance owner will generate individual overlaps for each overlapping physics body if it is a multi-body object. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
bool IsPhysicsObjectWorldGeometry() |
Returns true if this body instance should be considered world geometry | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
bool IsPhysicsOwnerMovable() |
Returns true if the body instance owner is movable | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
bool IsPhysicsOwnerSimulatingPhysics() |
Returns true if the body instance owner simulating physics | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
bool IsStaticPhysics() |
Whether the physics is static. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetComplexPhysicalMaterials
(
TArray< UPhysicalMaterial* >& OutPhysMaterials, |
PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const IPhysicsBodyInstanceOwner * GetPhysicsBodyInstanceOwnerFromHitResult
(
const FHitResult& HiResult, |
Returns the IPhysicsBodyInstanceOwner based on a given hit result. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
static const IPhysicsBodyInstanceOwner * GetPhysicsBodyInstanceOwnerFromOverlapResult
(
const FOverlapResult& OverlapResult, |
Returns the IPhysicsBodyInstanceOwner based on a given overlap result. | PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | |
static IPhysicsBodyInstanceOwner * GetPhysicsBodyInstandeOwnerFromHitResult
(
const FHitResult& Result |
PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h | ||
static IPhysicsBodyInstanceOwner * GetPhysicsBodyInstandeOwnerFromOverlapResult
(
const FOverlapResult& OverlapResult |
PhysicsEngine/PhysicsBodyInstanceOwnerInterface.h |