# How to attract item to the character

**URL:** <https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025>\
**Category:** Character & Animation\
**Tags:** homing, unreal-engine, question\
**Created:** [February 22, 2018, 12:45pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025 "2018-02-22T12:45:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ad87ab23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ad87ab23](https://forums.unrealengine.com/u/anonymous_user_ad87ab23)\
**Post date:** [February 22, 2018, 12:45pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/1 "2018-02-22T12:45:46Z")

</div>

Use homing function ?

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 22, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/2 "2018-02-22T12:50:51Z")

</div>

… this is an interesting question… you could use the homing feature of the projectile component… it would look very good and be very performance-efficient… bravo… I’ll consider using this one myself! 😃

other options include using Vinterp and a Timeline combined with Lerp to smoothly transition between the item actor’s current location (which is a vector) and the player character location (which is also a vector)

---

<div class="post-metadata">

**Author:** ![Exonfluxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Exonfluxx](https://forums.unrealengine.com/u/Exonfluxx)\
**Post date:** [February 22, 2018, 1:03pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/3 "2018-02-22T13:03:33Z")

</div>

My goal was to attract health orbs to player … Diablo III Style.

" _you could use the homing feature of the projectile component_ " - Tried this could never get it to work. Found out Homing worked more like " influence in direction when moving. Which worked horrifically for things stationary on the ground " Not at all like movie magic.

If your doing anything else then for sure try it.

“_using Vinterp and a Timeline combined with Lerp to smoothly transition between the item actor’s current location (which is a vector) and the player character location (which is also a vector)_” - In the end I ended up doing this.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 22, 2018, 1:09pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/4 "2018-02-22T13:09:44Z")

</div>

… hi Exxon, I’ve done quite a bit of playing about with projectile components, mostly using them as a basic flying chase AI. I totally respect your experience, and ground-based objects might be trickier, but but it might work… though there may be some adjusting involved 🙂

---

<div class="post-metadata">

**Author:** ![Exonfluxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Exonfluxx](https://forums.unrealengine.com/u/Exonfluxx)\
**Post date:** [February 22, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/5 "2018-02-22T13:20:38Z")

</div>

Agreed Please don’t let me discourage. My attempts where versions ago so who knows. my big issues was I could never get them off the ground they would simply stall and roll no matter how high I set Z speed Z anything I am talking in the 100k’s just would not come off the ground. they where great at hitting the player in the foot but I was looking for mid chest lol.

I believe it was unreal themselves at the time that said homing on projectiles was more like an influence in direction and less like movie magic . I gave up because my time ran short and spending a week on health orbs was killing project goals so I used the more popular way.

By All Means Do not Let my bad experiences with it stop you from trying it yourself. Nothing like seeing someone say it cant be done and you make it happen to feel great about your skill. I encourage that type of thinking in creators it makes great games.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 22, 2018, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-attract-item-to-the-character/418025/6 "2018-02-22T13:31:26Z")

</div>

respect to you Exonfluxx… maybe Epic had improved them by version 4:15. I did get them flying absolutely reliably and accurately towards homing targets… even moving targets

they did require quite a bit of adjustment though, and I do admit I didn’t have them flying close to the ground
