Find nearest scene component (for target motion warping)

Hey guys, i would like to : in blueprint, when interacting with a bp (table) (already configured) find the nearest scene component (target for motion warping) of my bp (table), from my player character. Any node or suggestion way ?

1 Player → Interact with the table (Already setup)

2 Compare distance target scene component of bp_table → return best suited target

3 Trigger motion warping with good target. (Already setup)

To develop my question do i set this distance compare in the bp_character player or the table ?
Might be easier in the bp_table to cycle throught target scene component and set it here with the latest transform of my player then send the best target to my bp_player ?

What is the actual way to cycle throught scene component transform and compare it to the current transform of my bp character ?

I found some great information on internet and discord(s)


But i still dont know how to compare the two distance i get that u loop both world location to get a vector lenght but i dont know what to do with the vector lenght

I dont understand if i have to store those result in local variable and check them like so i dont get what’s next

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.