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
&40;
UBodySetup &42; Setup,
const FTransform & Transform,
UPrimitiveComponent &42; PrimComp,
FPhysScene &42; InRBScene,
const FInitBodySpawnParams & SpawnParams
&41;
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 |