What is the right node, or the right way to move a character to location with a certain speed or time?

I discovered this node which I cannot attach a right controller and use, seems like it is not what I am looking for anyway.

What I think is, simply, A is characters location, and B is whatever location, we set a time, or speed (speed is better in my case) and the character will go by a straight line to B location.

It can be done without such a usefull node too I am sure, I will try something about that, I will be appreciated if anyone helps :slight_smile:<

@SupportiveEntity

Hey there @NEYSE_O001! Simple Move To is usually a simple method to make AI characters move to a location utilizing their Character Movement Component built in movement functions.

This (somewhat older but still relevant) video goes over how to implement Simple Move to Location in a player’s context:

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

2 Likes

I watched the video, it seems very usefull for enemy behaviour and such but now what I need now. My character has an ability, when press space, it jumps a surface right above it and stay there by modifiying (relative) gravity. Watch this you will understand:

But this is not very accurate, often the character goes elswhere and causes some major movement problems I can say. Instead, I want the character to, when press space, directly go to line trace’s hit point, or location (don’t know the difference really) by a straight line and witth a certain speed, or time. If time it must also callculate it by distance anyway. Character is not suposed to levitate in air, I will move tha character directly to hit point and than it will modify gravity, I can do the lining system that’s fine, I just don’t know the proper way to move the character as I explained.

You can use AddImpulse or AdForce for such movement similar to how jump is implemented. Unfortunately it wont be too precise especially with high speeds. It will also be affected by friction and air/ground control which might not be desired.

You can use SetActorLocation or Teleport to move the actor to a specific point. You just need to call those continuously for your set movement duration.

Keep in mind that if you want this in multiplayer it would be a bit more involved because of how CharacterMovementComponent works. If you want it done properly check this documentation: Understanding Networked Movement in the Character Movement Component for Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community