UPrimitiveComponent::SetSimulatePhysics

Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic).

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp

Syntax

virtual void SetSimulatePhysics
(
    bool bSimulate
)

Remarks

Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic). Note that if this component is currently attached to something, beginning simulation will detach it.

Parameters

Parameter

Description

bSimulate

New simulation state for single body

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