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"

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. 

How to prevent projectile from falling through terrain

I have set up several different weapons that all work great when prototyping but now that I am working with terrain that we sculpted, my grenade and rockets from their respective weapons just go right through the terrain. My other weapons like my assault rifle still impact the terrain just fine and the only difference is that they have a tracer in the components. I have tried adding a tracer to my grenade and it still just falls through. I have tried adjusting the collision on all the components and nothing seems to work. I do not know what to do and would love some help.

Product Version: Not Selected
Tags:
more ▼

asked Mar 24 '15 at 02:10 AM in Blueprint Scripting

avatar image

JustinRojas
21 3 4 7

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

3 answers: sort voted first

Probably you have already tried this, but just to be sure,

Double check the collision channel settings, make sure your projectile has a collision component and it is set to 'Block' against 'Terrain'. Then come back to your terrain and make sure its collision channel is indeed 'Terrain' and it is set to 'Block' against whatever collision channel your projectile is using.

more ▼

answered Mar 24 '15 at 02:57 AM

avatar image

mindfane
3.4k 154 51 271

avatar image JustinRojas Mar 24 '15 at 01:17 PM

I have collision set up as Block All for both at this time. My projectile does have a collision component that is set to Pawn just like my Assault Rifle but I don't see anything about being able to block it against Terrain. Unless I am reading into what you are saying wrong. For some reason now my grenade launcher is not colliding with anything, in fact I don't think it is even coming out any more.

avatar image alperenakyuz Mar 24 '15 at 02:53 PM

You should also check the collision behaviour of your mesh. Try opening the renade model in the static mesh window and setting the collision to complex instead of default or simple.

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

I tried those suggestions and they did not seem to work; however, I managed to find a way to make it work. To explain I created a timer off Begin Play to loop every 0.2 seconds. Gave it the name CollisionEvent, and then created a custom event of the same name. From there I checked to see if the grenade was NOT overlapping with my Grenade Launcher. If it is not, then it will destroy the Grenade mesh and tracer, activate the explosion, play sound, and then destroy the actor when the explosion is complete.

alt text

I am sure there is a better or more proper way to do this, but it works for my game and so I will go with it for now. I hope that this will help someone else out as well.

more ▼

answered Mar 30 '15 at 02:05 PM

avatar image

JustinRojas
21 3 4 7

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

Had this issue today while creating a blue print. Check that you've not somehow included the DefaultRoot node within the blue print. If you have. Just unparent the components and it should disappear from the BP.

Hope this helps.

more ▼

answered Jul 25 '15 at 09:02 PM

avatar image

BlissettDMB
26 1 3 5

(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