x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Clicking outside NavMesh move my character to 0, 0, 0 point

I have exactly same problem described here:

https://answers.unrealengine.com/questions/36667/click-to-move-and-clicking-outside-of-navmesh-boun.html

...but still can't figure out elegant solution.

Steps to reproduce:

  1. Create new Top Down Blueprint project

  2. Create new Level with Default preset

  3. Add NavMesh Bounds Volume box

  4. Start game

  5. Move character anywhere inside NavMesh

  6. Click outside the floor (order player to "jump off")

Any idea how to move character towards cursor as far it's possible without falling? He could at least don't move at all.

Cheers!

Edit: OK, I've found elegant way to prevent moving towards centre of scene: alt text

All I've had to do is just put "Branch" between "Gate" and "Move to Hit Location" based on "Get Hit Result..." return value.

Still no clue (if it's even possible) how to move character towards cursor as far as possible.

Product Version: Not Selected
Tags:
more ▼

asked Sep 17 '14 at 07:34 PM in Blueprint Scripting

avatar image

Nattfarinn
1 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Nattfarinn,

I was able to reproduce the behavior you described, and entered a bug report in our database for our developers to look at (TTP# 346920). I will let you know if I see any update on the issue. Thanks for your report!

more ▼

answered Sep 17 '14 at 08:39 PM

avatar image Nattfarinn Sep 17 '14 at 08:46 PM

I've found way how to prevent character moving. It looks like default "MyCharacter" blueprint is missing return value check of "Get Hit Result..." function and moves character even on False. :)

avatar image veiovis Jan 11 '15 at 10:53 PM

Where can I see the bug reports and if this was addressed?

avatar image Ben Halliday STAFF Jan 12 '15 at 06:59 PM

Hi veiovis,

Currently our bug report database is not public. There is some discussion of making it accessible in the future, but for now it's best to ask in the place it was initially reported and we can look it up.

With this issue, it appears the bug is still not fixed internally. However, the workaround posted by Nattfarinn above should resolve the issue if you are still experiencing it.

avatar image MaroonersRockAnimation Jan 05 '16 at 01:39 AM

Any resolve to this? My Character seems to be doing it more and more as I add more assets

avatar image Ben Halliday STAFF Jan 05 '16 at 03:51 PM

It looks like this behavior (moving to 0,0,0 when clicking outside the nav mesh area) is by design (bug updated to UE-3210 for internal reference). The geometry hit detection code results in 0,0,0 for out-of-bound clicks to avoid a null reference. To avoid this, use a check to see if the hit result is what you want it to be before moving.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question