Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USkeletalMeshComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Components|SkeletalMesh",
Meta=(DisplayName="Get Closest Point On Physics Asset", ScriptName="GetClosestPointOnPhysicsAsset", Keywords="closest point"))
bool K2_GetClosestPointOnPhysicsAsset
(
const FVector & WorldPosition,
FVector & ClosestWorldPosition,
FVector & Normal,
FName & BoneName,
float & Distance
) const
Remarks
Given a world position, find the closest point on the physics asset. Note that this is independent of collision and welding. This is based purely on animation position true if we found a closest point
Parameters
| Name | Description |
|---|---|
| WorldPosition | The point we want the closest point to (i.e. for all bodies in the physics asset, find the one that has a point closest to WorldPosition) |
| ClosestPointOnPhysicsAsset | The data associated with the closest point (position, normal, etc...) |