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"

Does Nav Mesh work on BSP?

I have an AI controlled character that moves from point to point with “move to” and goes after the player if it sees them. Everything was fine while I was testing it on a flat area, then the top of a sphere too but I made two floors connected with a BSP Linear Stairs.

It stopped working, the Nav Mesh shows the BSP as green but the AI won’t move up the stairs and I tried to Create Static Mesh but it still won’t work either and the Static Mesh doesn't show green. I got the AI to move down Spiral Stairs once but couldn't get it to happen again.

I also tried terrain but that doesn’t work for long and would be hard to make the levels I want. BSP Linear Stairs or Spiral Stairs would work best for the level design but they don’t work with the AI.

Thank you for taking the time to read me question.

Product Version: UE 4.12
Tags:
more ▼

asked Feb 03 '17 at 04:52 PM in Everything Else

avatar image

KOOLzK
23 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Does your MoveTo for the AI us a 3d coordinate? It sounded to me like its only 2d with no Z axis which might cause it to not find a correct spot on the NavMesh. Do you have a picture of the stairs, its possible its abit complex for your simple path finding.

more ▼

answered Feb 04 '17 at 01:56 PM

avatar image

MonsOlympus
963 37 11 37

avatar image KOOLzK Feb 04 '17 at 11:12 PM

I'm pretty sure it's in 3D coordinate. I made some ramps with cubes that go around and over the lower bits and the AI can go up and down them. The ramp has to be a 20 degrees or less, this and the stairs I got to work aren't very good for making levels.

In the World Outliner tab I found something called "RecastNavMesh-Default" I think this is different than the "NavMeshBoundsVolume" which is in the level. if I put "Agent Max Step Height" to 30 instead of 35 and make the Linear Stair Brush's "Step Height" to 10 instead of 20 the AI will clime it.

Here is a picture of the stairs, I went to Geometry section of the Modes tab to get the Linear Stair alt text

I tried changing the step height on the character blueprint but it didn't do anything. The blueprint is based on a C++ class I made I don't know if that makes a difference.

bf_ai_01.png (263.9 kB)
avatar image MonsOlympus Feb 06 '17 at 04:14 PM

Yeah stair height can be an issue, one thing you could do is use ramps instead of stairs so you dont need to adjust the step height as its based on the collision normal. If youre worried about feet on the stairs themselves you can solve with IK later on to make it look less like floating.

(comments are locked)
10|2000 characters needed characters left
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