FBodyInstance::InitBody

Initialise a single rigid body (this [FBodyInstance](API\Runtime\Engine\PhysicsEngine\FBodyInstance)) for the given body setup

Windows
MacOS
Linux

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

Syntax

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss