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"

How do make my homing projectile sense collision?

Hello, I made a set of homing projectiles which spawn from a character towards three targets, and set to explode on contact.

The homing works just fine, problem is, when I disable physics, it doesn't collide with anything and doesn't explode, just goes to and remains at the homing target.

When I enable physics, it explodes right in the character's hand, though I have set it to ignore the char's collision.

Please help. (Pictures of my blueprints attached)alt text

Product Version: UE 4.18
Tags:
2018-02-25-2.png (328.8 kB)
2018-02-25.png (445.0 kB)
2018-02-25-1.png (698.1 kB)
more ▼

asked Feb 25 '18 at 07:36 PM in Blueprint Scripting

avatar image

Grey27
41 7 12 12

avatar image ThompsonN13 Feb 25 '18 at 07:52 PM

well you dont show you collision settings so its a bit hard to say for sure whats going on. i would start by making the mesh the root instead of the scene component you have.

avatar image Grey27 Feb 25 '18 at 08:23 PM

Oh sorry, let me attach the collision settings.alt text

2018-02-25-3.png (690.7 kB)
avatar image ThompsonN13 Feb 25 '18 at 08:32 PM

your collision isnt set to generate hit events so theres another reason it could be failing

avatar image Grey27 Feb 25 '18 at 08:33 PM

tried that, nothing changed

avatar image ThompsonN13 Feb 25 '18 at 08:58 PM

did you try the first suggestion? your pictures also dont show how you made the collision ignore the character

avatar image Grey27 Feb 25 '18 at 09:19 PM

I tried that in the past, it made the projectile spawn but it would just hang in the air and not home in on the target. Unless my script is all wrong.

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

1 answer: sort voted first

i found a post on the forums that should help a bit. i made a similar setup to the one in the forum post but instead of the scene as the root i made a collision volume the root. the collision volume had physics disabled and gravity enabled.

more ▼

answered Feb 26 '18 at 01:00 AM

avatar image

ThompsonN13
10.1k 33 10 24

avatar image Grey27 Feb 26 '18 at 02:55 PM

Hey, I actually made a mistake when following your scene root advice the first time. That was actually the problem when I tried it again. Thanks so much man.

(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