USkeletalMeshComponent::GetClosestCollidingRigidBodyLocation

Iterates through all bodies in our PhysicsAsset and returns the location of the closest bone associated with a body that has collision enabled.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Components/SkeletalMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SkeletalMeshComponent.cpp

Syntax

FVector GetClosestCollidingRigidBodyLocation
(
    const FVector & TestLocation
) const

Remarks

Iterates through all bodies in our PhysicsAsset and returns the location of the closest bone associated with a body that has collision enabled.

Returns

location of closest colliding rigidbody, or TestLocation if there were no bodies to test

Parameters

Parameter

Description

TestLocation

location to check against

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