TPhysicsProxy::PullFromPhysicsState

CONTEXT: GAMETHREAD (Read Locked) Perform a similar operation to Sync, but take the data from a gamethread-safe buffer.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/PhysicsProxy.h

Include

#include "Chaos/Framework/PhysicsProxy.h"

Syntax

void PullFromPhysicsState()

Remarks

CONTEXT: GAMETHREAD (Read Locked) Perform a similar operation to Sync, but take the data from a gamethread-safe buffer. This will be called from the game thread when it cannot sync to the physics thread. The simulation is very likely to be running when this happens so never read any physics thread data here!

Note: A read lock will have been acquired for this - so the physics thread won't force a buffer flip while this sync is ongoing

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