Character movement toward mouse cursor
I'm trying to get the player character to move to wherever the cursor is located, but so far the only method I've found results in jerky movement and abrupt stops when the cursor passes over an object or a wall. I assume this is because the character is unable to move to that location, but completely preventing the character's movement is unnecessary because the player will just collide with any objects or walls that they cannot pass. So, is there any way to have the character just move directly toward wherever the mouse is located? I've tried to get the cursor's location and send the character to wherever that is, but I can't find a way to make it connect in the blueprint.
asked Apr 16 '15 at 02:47 PM in Blueprint Scripting
I haven't heard from you in quite a while. For recording and tracking purposes, I must close this thread at this time. If you happen to still have any unanswered questions regarding this specific topic, please do not hesitate to reply to this thread.
answered Apr 20 '15 at 07:47 PM
So I don't know for certain how to do this, but you probably want to be moving the character no exactly toward the mouse cursor, but toward the last point that the cursor was on the nav mesh. I'd probably start by messing around with "get hit result" and using the "project point to navigation" to move around a marker or something that the pawn can move to.
answered Apr 16 '15 at 06:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here