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"

[Collision] Problem with Character and Blueprint actor collision

Hi, I've set a Blueprint actor with a Static Mesh Component (the mesh has collision set in the Static Mesh Editor -if it's still called that way-) and the component in the Blueprint has collision to "BlockAll".

I have a character pawn that collides everything as expected in levels, but with that particular Blueprint actor something strange happens: if the character moves towards the Blueprint actor they collide, but if the character doesn't move the Blueprint actor can go across the pawn as if there was no collision (the Blueprint has a graph to move every tick with "Set Actor Location") .

Do you know what might be causing this? I'd like to set things so they always collide.

Product Version: Not Selected
Tags:
more ▼

asked Mar 25 '14 at 10:32 PM in Using UE4

avatar image

Albert Espín
987 81 98 361

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

1 answer: sort voted first

Hello,

The issue you are running into sounds like your graph is actually setting the Actor Location to a spot that your pawn already occupies. In this case, the block would not occur because the object is being set to that exact location. You may want to look into adding an Overlap event to the component that is moving and if it hits a pawn, have it move the pawn a short distance to the side out of the path--maybe using a Normal vector?

If you want to post a screenshot of your graph, we may be able to provide a better suggestion.

Thanks!

-Steve

more ▼

answered Mar 26 '14 at 03:01 AM

avatar image

Steve Allison STAFF
4.3k 123 58 209

avatar image Albert Espín Mar 26 '14 at 06:36 PM

Hi and thank you, Steve.

I solved this issue some days ago just in a very similar way to the one you mention (using an BeginOverlap event and check if the Other actor is the pawn, if so it pushes the pawn with a SetLocation function as it would be expected in the real world), but I forgot to write it here.

(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