# How can the character be drawn exponentially increasing from a certain point.

**URL:** <https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [October 15, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462 "2024-10-15T13:10:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 15, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/1 "2024-10-15T13:10:42Z")

</div>

Hello community,

I’m working on a level where I want a character to be pulled into a hole when they stop moving. Additionally, I’d like the gravitational pull to increase as the character gets closer to the hole. I found this thread about a similar topic ([Pulling characters into a black hole - #6 by Everynone](https://forums.unrealengine.com/t/pulling-characters-into-a-black-hole/458380/6)), but I’m struggling to make the character actually fall into the hole.

Does anyone have any suggestions or insights on how to achieve this? Thank you!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 15, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/2 "2024-10-15T13:12:40Z")

</div>

> [@NigelSlaighter](#):
>
> Charakter wouldn’t fall into the hole.  
> Maybe someone has an idea?

Try jumping or launching the character - does it help? The Character Movement Component has a tendency to keep characters _glued_ to the ground.

When it comes to increasing force, get distance between the 2 objects and do `radius` - `distance`.

* * *

If it does not help, post script.

---

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 15, 2024, 1:59pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/3 "2024-10-15T13:59:55Z")

</div>

Thank you for your quick answer! I haven’t been able to reconstruct the blueprint yet, as I’m having difficulty locating most of the nodes. I apologize for my inexperience with the Unreal Editor. My inquiry was more theoretical: is there perhaps a simpler method to get the character to get drawn to something?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 15, 2024, 2:09pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/4 "2024-10-15T14:09:36Z")

</div>

> [@NigelSlaighter](#):
>
> is there perhaps a simpler method

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/8/a28c304d2bf0de453439413b395c48eb9b3885d0.png)

Add a `Radial Force` Component to an actor and place it in the level.

---

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 21, 2024, 10:14am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/5 "2024-10-21T10:14:36Z")

</div>

Thank you! This was exactly what I was looking for. However, the character isn’t falling through the hole because the force is preventing it. I tried placing the negative force within the hole to balance it out, but the character is still hovering. Do you have any ideas on how to fix this? I was considering implementing an attenuation to set the force to zero in the middle of the hole.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 21, 2024, 10:50am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/6 "2024-10-21T10:50:22Z")

</div>

> [@NigelSlaighter](#):
>
> but I’m struggling to make the character actually fall into the hole.

Could you clarify how this is supposed to work? We’re not making a black hole, surely? Do you have an opening in the floor towards which you simply want to pull the player; and, once close enough to the opening, let them fall through? Is that it?

* * *

The original suggestion would offer a fair bit of granular control over which axis pulls which way, how strongly and so on. The `Radial Force` component is rather simple, perhaps you could switch it off once the player has reached its location? Would that work?

---

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 22, 2024, 4:52pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/7 "2024-10-22T16:52:46Z")

</div>

> [@Everynone](#):
>
> The original suggestion would offer a fair bit of granular control over which axis pulls which way, how strongly and so on. The `Radial Force` component is rather simple, perhaps you could switch it off once the player has reached its location? Would that work?

Yes, this would work perfectly but I couldn’t really find a way to disable it when the player approaches. Do you know something simple for that?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 22, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/8 "2024-10-22T20:38:55Z")

</div>

Any component can be set to be active or not. Or simply stop firing the impulse…

---

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 23, 2024, 8:15am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/9 "2024-10-23T08:15:20Z")

</div>

The issue is that the player is already within the component to be affected by the radial force. I’m struggling to determine a way to set the distance so that the force is deactivated only when the player is directly over the hole.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 23, 2024, 8:49am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/10 "2024-10-23T08:49:53Z")

</div>

> [@NigelSlaighter](#):
>
> struggling to determine a way to set the distance so that the force is deactivated only when the player is directly over the hole.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/3/fc31d4175734a4ab43af53e37075ff87b4ab923c.png)

> I’d like the gravitational pull to increase as the character gets closer to the hole

Set `Falloff` to linear.

* * *

Or add a small overlap volume in the very centre. When the player overlaps it, destroy the component, or even destroy the entire `Radial Force` owning actor if it’s supposed to be single use only.

---

<div class="post-metadata">

**Author:** ![NigelSlaighter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NigelSlaighter](https://forums.unrealengine.com/u/NigelSlaighter)\
**Post date:** [October 23, 2024, 9:47am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/11 "2024-10-23T09:47:22Z")

</div>

That is perfect - thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 22, 2024, 9:48am UTC](https://forums.unrealengine.com/t/how-can-the-character-be-drawn-exponentially-increasing-from-a-certain-point/2069462/12 "2024-11-22T09:48:16Z")

</div>

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