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"

Set collision Object Type function of a destructible Mesh does not work?

What I'm trying to do is selecting which of my enemies get affected by a radial force impulse.

I thought the smartest way about it would be to limit the affected Object types and changing the Collision Object Type of the enemy when it should be affected. Sadly, that does not seem to work. If I just pick the collision type from the getgo, it does get affected, if I however call the function to do that while playing, it does not seem to matter. I made sure that the set collision type function gets called before the radial force impulse gets fired.

Any hints or suggestions would be greatly appreciated!

Product Version: Not Selected
Tags:
more ▼

asked Mar 07 '15 at 05:19 AM in Bug Reports

avatar image

TeamFlow
21 2 6

avatar image TeamFlow Mar 07 '15 at 05:37 PM

I have conducted a little minimal test on a minimal example to check and I really think the system is not working as it is supposed to. I tested the following: Create a destructible mesh out of the twinstick ufo, made a blueprint out of it and attached a radial force component. The Radial Force only affects Destructibles. Then I hooked up the radial force to the begin play with a small delay. ufo gets destroyed. Then I changed the object type to pawn and hooked up the following: alt text

No destruction. Am I missing something or should that suffice as evidence?

collisiontest.jpg (65.4 kB)
avatar image TJ V ♦♦ STAFF Mar 10 '15 at 10:19 PM

Hi TeamFlow,

First off, which version of the editor are you currently using?

Also,

The Radial Force only affects Destructibles.

Because of that, the Radial Force will never affect the the Pawn. You must set the Radial Force to interact with all of the collision types that you want.

You can do this on the fly with the 'Add Object Type to Affect' node.

avatar image TeamFlow Mar 10 '15 at 10:30 PM

Hello Sir TJ,

I use version 4.7.2 of the Editor. Was my Test Setup not clear so you could not reproduce it? I will be happy to explain it in more detail or prepare a project to upload somewhere! (I played around with the system for 3-4 nights so I hoped I did understand what it's supposed to be doing before badgering anyone here.)

avatar image TJ V ♦♦ STAFF Mar 10 '15 at 11:02 PM

I'm sorry if I'm misunderstanding. Here is what I did:

I set mine up like you have pictured above in a new 4.7.2 project.

As long as the 'Radial Impulse' was set for 'Destructible' and 'Pawn', it would destroy the destructible mesh every time regardless whether the 'Set Collision Object Type' was set to destructible or pawn.

The only time I experienced what you described was if I set the 'Radial Impulse' to only affect 'Destructible'. Which is intended functionality with this setup..

avatar image TeamFlow Mar 10 '15 at 11:27 PM

Okay, let me step you through my thought process so you know what I'm trying to do. You have a bunch of enemies next to each other. While they are alive, no destruction should set in. As soon as one dies, a radial force gets fired. However, that force should only affect the dead enemy, not the other enemies nearby who are still alive and might be in the radius of the impulse.

That's why I thought I just change the Collision Object type of the enemy when he dies so only a dead enemy can be affected by that impulse.

alt text

My understanding was that the Set Collision Object Type sets the type you can see on the right, The Object Type in the Collision Subpart. And that's what my little test setup should test.

If you have the destructible Object type set to Destructible from the getgo, the radial force affects it. If you however set it to pawn and use the Node to set it to destructible ingame, it does not affect it and thus I think the node is either not working like it is supposed to or it is working differently than I expected it to! I hope you now understand my problem. Thank you for your time!

Edit: My previous attempts included trying to achieve what I'd like to do with sleeping/hard sleeping and other stuff I thought might do the trick as well. They all failed. That's why I tried to do it with that kind of workaround to tackle the problem.

testsetup.png (516.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi TeamFlow,

Thank you for all of the details and feedback. I was able to reproduce the issue and I have created report UE JIRA-11911 in our tracking software. Our developers will be investigating the issue further and we will post back here with updates as we have them.

Thanks,

TJ

more ▼

answered Mar 16 '15 at 03:54 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

(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