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"

No collision when static mesh component is set to block all?

Edit: See my last comment for solution, turns out this wasn't even the real issue.

There seem to be a lot of questions about this but they mostly seem to be resolved when the author changes their static mesh from moveable to static. This didn't help my case so I will describe my situation.

I'm trying to create a riot shield type of ability in my game. I know how to script enabling and disabling the visibility and collision of the static mesh component but I can't get it to have any collision of any type. To be clear I haven't used any blueprint scripting yet, I am just trying to make the shield in front of me block bullets. I have tried facing the door both ways and it never blocks my or enemy bullets so it's not an issue with normals. It does have collision if I make it a physics actor but it falls over immediately which doesn't help me.

I started by adding a static mesh component (a door) and enabling all the collision to block. I can drag the same door into my levels and it has collision with projectiles and players but my component does not.

You can look at my settings here: http://puu.sh/awAoK.jpg

Product Version: Not Selected
more ▼

asked Jul 30 '14 at 01:23 AM in Blueprint Scripting

avatar image

226 14 13 35

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

1 answer: sort voted first


Your problem is probably because your mesh does not have any collision mesh. Even if you enable Block All or other collision options, the engine need to know how to collide with the mesh. Go to the static mesh editor and go to the Collision menu. There you can add one of those predefined shapes. And then you can watch the shape of the collision mesh by pressing that button in the toolbar with a green wireframe. With this you'll see if the collision mesh suits for your mesh.

And now you should have collision.

more ▼

answered Jul 30 '14 at 01:34 AM

avatar image

340 24 22 202

avatar image VedgyB Jul 30 '14 at 01:52 AM

I have put the same door in my level and it has collision, I double checked with your solution but it didn't help. The mesh itself has a collider, it just isn't doing anything as a component of my character. Can you get something like this working in the engine?

avatar image PacoChan Jul 30 '14 at 01:54 AM

In that case I don't know what could be the problem, sorry.

avatar image VedgyB Jul 30 '14 at 02:02 AM

Wow I'm stupid, I thought because I was still taking damage when being shot that the shield had no collision, but it actually did have collision but since it's a part of the player, it becomes a part of my hitbox. I just need to script it to not do damage, my bad.

(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