# Possible to Line Trace on Mesh Deformation?

**URL:** <https://forums.unrealengine.com/t/possible-to-line-trace-on-mesh-deformation/2092494>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, question\
**Created:** [October 28, 2024, 2:26pm UTC](https://forums.unrealengine.com/t/possible-to-line-trace-on-mesh-deformation/2092494 "2024-10-28T14:26:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 1, 2024, 7:08am UTC](https://forums.unrealengine.com/t/possible-to-line-trace-on-mesh-deformation/2092494/3 "2024-11-01T07:08:16Z")

</div>

Hey there @TristanAVR! Welcome to the community! So you won’t be able use pure collisions for checking the morph target hits. Though if I remember correctly, you could check your vertex positions, as I do believe their movement is actually read when MTs are active.

Here’s a thread showing off how to get the SKM vertex positions with some custom code:

> [@Getting the world position of skeletal mesh vertex](https://forums.unrealengine.com/t/getting-the-world-position-of-skeletal-mesh-vertex/386765/32):
>
> Got it working in 5.4 #include "Rendering/SkeletalMeshRenderData.h" #include "Engine/SkeletalMesh.h" #include "SkeletalRenderPublic.h" bool UCustomBP\_Library::BP\_GetSkeletalMeshVertexLocations(USkeletalMeshComponent\* Mesh, TArray\<FVector\>& Locations, int32 LODIndex) { if (!Mesh || !Mesh-\>GetSkeletalMeshAsset()) { return false; } const FSkeletalMeshRenderData\* RenderData = Mesh-\>GetSkeletalMeshRenderData(); if (!RenderData) { return false; } c…

Hope this helps! Let me know how it goes, I’m interested in the outcome!

---

_[View the full topic](https://forums.unrealengine.com/t/possible-to-line-trace-on-mesh-deformation/2092494)._
