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"

Generate overlap without generating events

Hello, I'm trying to create a car vehicle destruction by using morph targets. Basically, I'm using box collision and when it overlaps with another object it should change the value of the morph.

Everything works good, but the problem here is that I need to tick "Generate overlap events" In almost every single object in the whole environment, so that the vehicle can overlap with it and fire the "on overlap event".

Is there another way to get that done? for example to just have an event like "on collision with any object".

Product Version: UE 4.18
more ▼

asked Oct 20 '18 at 12:59 PM in Blueprint Scripting

avatar image

6 5 6

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

1 answer: sort voted first

That is probably not a.bad way to go actually.

But it might be more useful to set a collision type and collision channels on each object because a blocking collision hit will alsongive you info such as what location was hit and at what angle. And it also automatically blocks the movement or bounces off.

If you find it tedious to do this on every object in the world you can do a couole of things

1 select multiple placed objects and edit them all simultaneously. I think there is an option to do this in the right click menu called property editor or properties table or something. And Maybe you can just edit them all at once when multiples are selected from the World Outliner pane by setting the values in the Details Pane the same as you do for a single selected object that was placed in the world.

2 or you can create a bluprint class when you can select the static mesh of the object and it has all the collision settings the way you want it by default.

Maybe one of those ideas can speed up your workflow.

more ▼

answered Oct 20 '18 at 03:49 PM

avatar image

3.8k 18 23 20

avatar image dinasorZ Oct 20 '18 at 09:25 PM

Thank you, maybe I'll do number 1 to speed up the process, but will it not gonna affect the performance badly? Every object in the world ticking & checking it's overlap...

avatar image mightyenigma Oct 20 '18 at 11:01 PM

Dont have to do it on tick event. Just use Onbeginoverlap event. I dont know if the engine has to tick to check for those but you don't have to put them in any kind of tick

avatar image dinasorZ Oct 21 '18 at 05:16 AM

Yea, I'm not of course, I'm just afraid if the engine is doing that automatically and that the overlap is expensive in performance, especially if every object in the world have it.

(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