Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/FBodyInstance > API/Runtime/Engine/PhysicsEngine/FBodyInstance/InitBody
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include | #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
)
Remarks
Initialise a single rigid body (this FBodyInstance) for the given body setup
Parameters
| Name | Description |
|---|---|
| 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 |
| InAggregate | An aggregate to place the body into |