Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FBodyInstance
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitBody
(
UBodySetup* Setup, |
PhysicsEngine/BodyInstance.h | ||
void InitBody
(
UBodySetup* Setup, |
Initialise a single rigid body (this FBodyInstance) for the given body setup | PhysicsEngine/BodyInstance.h | |
void InitBody
(
UBodySetup* Setup, |
Initialise a single rigid body (this FBodyInstance) for the given body setup | PhysicsEngine/BodyInstance.h |
InitBody(UBodySetup , const FTransform &, UPrimitiveComponent , FPhysScene *)
| Name | InitBody |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include Path | #include "PhysicsEngine/BodyInstance.h" |
void InitBody
(
UBodySetup * Setup,
const FTransform & Transform,
UPrimitiveComponent * PrimComp,
FPhysScene * InRBScene
)
InitBody(UBodySetup , const FTransform &, UPrimitiveComponent , FPhysScene , const FInitBodySpawnParams &, IPhysicsBodyInstanceOwner )
Description
Initialise a single rigid body (this FBodyInstance) for the given body setup
| Name | InitBody |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include Path | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
void InitBody
(
UBodySetup * Setup,
const FTransform & Transform,
UPrimitiveComponent * PrimComp,
FPhysScene * InRBScene,
const FInitBodySpawnParams & SpawnParams,
IPhysicsBodyInstanceOwner * BodyInstanceOwner
)
Parameters
| Name | Remarks |
|---|---|
| Setup | The setup to use to create the body |
| Transform | Transform of the body |
| PrimComp | The owning component |
| InRBScene | The physics scene to place the body into |
| SpawnParams | The parameters for determining certain spawn behavior |
| BodyInstanceOwner | The owning object of the body instance (optional and only used if PrimComp is not set) |
InitBody(UBodySetup , const FTransform &, UPrimitiveComponent , UObject , FPhysScene , const FInitBodySpawnParams &, IPhysicsBodyInstanceOwner *)
Description
Initialise a single rigid body (this FBodyInstance) for the given body setup
| Name | InitBody |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include Path | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
void InitBody
(
UBodySetup * Setup,
const FTransform & Transform,
UPrimitiveComponent * PrimComp,
UObject * SourceObject,
FPhysScene * InRBScene,
const FInitBodySpawnParams & SpawnParams,
IPhysicsBodyInstanceOwner * BodyInstanceOwner
)
Parameters
| Name | Remarks |
|---|---|
| Setup | The setup to use to create the body |
| Transform | Transform of the body |
| PrimComp | The owning component |
| SourceObject | The source object. If null and PrimComp is not null, it will be set to the owning actor. |
| InRBScene | The physics scene to place the body into |
| SpawnParams | The parameters for determining certain spawn behavior |
| BodyInstanceOwner | The owning object of the body instance (optional and only used if PrimComp is not set) |