Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBodySetup
Description
Given a location in body space, and face index, find the UV of the desired UV channel. Note this ONLY works if 'Support UV From Hit Results' is enabled in Physics Settings.
| Name | CalcUVAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
| Include Path | #include "PhysicsEngine/BodySetup.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
bool CalcUVAtLocation
(
const FVector & BodySpaceLocation,
int32 FaceIndex,
int32 UVChannel,
FVector2D & UV
) const