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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Possible bug] AddActorLocalOffset fails with collision detection inside BehaviorTree task

it seems, i've encountered a strange bug with collision detection during the execution of AddLocalOffset command inside a Blueprint task for BehaviorTree.

The problem appears only there, because, if you add this command inside Pawn blueprint, the collision detection between pawn and level geometry starts perfectly working.

Blueprint graph:
alt text
Sphere Pawn stops exactly in front of wall:
alt text

For 'AI-driven' method the setup for BehaviorTree is pretty much simple:
alt text
BTT_OffsetMove task Blueprint:
alt text
After assigning an AI Controller with this BehaviorTree to our Pawn it just starts passing through the wall:
alt text

Root Pawn sphere collision setup:
alt text

Product Version: Not Selected
more ▼

asked Mar 22 '15 at 04:20 PM in Blueprint Scripting

avatar image

75 6 11 13

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

1 answer: sort voted first

I'm surprised it actually compiles :) I suggest you re-thing the logic of that code. Current setup will result in Add Actor Local Offset's Target being null since it gets executed as part of the Tick event, not the Receive execute. In general, when things are not working as intended I recommend looking around with debugging tools - just place a break-point on the Add Actor Local Offset and see where it came from and what are the input values.



more ▼

answered Mar 24 '15 at 12:35 PM

avatar image

MieszkoZ STAFF
7.3k 223 57 412

avatar image Revenvik Mar 24 '15 at 01:29 PM

Yeah, I've noticed this wrong pin connection just after a few moments I posted this report, but the thing is.. there is no difference at all. The controlled pawn still passes through the wall.
Also, with a breakpoint placed on the AddActorLocalOffset node we can see, that even ReceiveExecute event returns proper reference to our Pawn:
alt text By the way, the Hit event is also being properly registered even in this way, I have no suggestions on what can be wrong here tbh

avatar image Revenvik Mar 24 '15 at 01:54 PM

I've uploaded a test project (done with UE4.7.3 downloaded from launcher), hope this will help

link text

avatar image Revenvik Apr 06 '15 at 07:41 PM

Any news on that? I still don't have any appropriate solution or a workaround.
This issue is not critical for me, but still important. I move my enemy Pawns with AddActorLocalOffset and need to check collision detection with environment.
The only one workaround I found was to enable 'Simulation Generates Hit Events' on Pawn's collision shape and check for EventHit inside Blueprint to stop enemy. This does work somehow, but is so far from ideal:
alt text

As you can see, it didn't work for all the enemies. The one on the left stopped almost inside the wall, while the right one passed through the wall. Has to mention, that the enemies' fly speed is very high

(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