Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > UBodySetup
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
Include | #include "PhysicsEngine/BodySetup.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
void CreatePhysicsMeshesAsync
&40;
FOnAsyncPhysicsCookFinished OnAsyncPhysicsCookFinished
&41;
Remarks
Create Physics meshes (ConvexMeshes, TriMesh & TriMeshNegX) from cooked data async (useful for runtime cooking as it can go wide off the game thread) Release Physics meshes (ConvexMeshes, TriMesh & TriMeshNegX). Must be called before the BodySetup is destroyed NOTE: You cannot use the body setup until this operation is done. You must create the physics state (call CreatePhysicsState, or InitBody, etc..) , this does not automatically update the BodyInstance state for you