FBodyInstance::InitStaticBodies

Standalone path to batch initialize large amounts of static bodies, which will be deferred till the next scene update for fast scene addition.

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

static void InitStaticBodies
(
    const TArray< FBodyInstance * > & Bodies,
    const TArray< FTransform > & Transforms,
    UBodySetup * BodySetup,
    class UPrimitiveComponent * PrimitiveComp,
    FPhysScene * InRBScene
)

Remarks

Standalone path to batch initialize large amounts of static bodies, which will be deferred till the next scene update for fast scene addition.

Parameters

Parameter

Description

Bodies

Transforms

BodySetup

PrimitiveComp

InRBScene

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