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"

Action when certain mesh collides with eachother

Hi,

I added the option to drag and drop static meshes like cubes an spheres. What I want to achieve is to drop a mesh (like a cube) onto another mesh (like a platform - also a cube). Then, when they both collide, an action should take place in the level blueprint (the platform moves). Preferably I want to know which (the name) cube collides with the platform but for now, it's OK if any cube collides with the platform in order to trigger the sequence.

Is there any tutorial or manual I can read to see how this works? I only seem to find tutorials that explain events when a user hits or shoots a wall but none that describe how to setup events when two meshes collide. I played around with the collision presets but can't get it to work.

Thanks in advance!

Product Version: UE 4.16
Tags:
more ▼

asked Aug 02 '17 at 03:59 PM in Using UE4

avatar image

Surfstudio
1 2 3

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

1 answer: sort voted first

there's a collision tutorial in the unreal engine's documentation? https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseOnHit/Blueprints/

in this example they talk about using the on hit event to apply damage to a destructible mesh, but you can use it to anything, just be sure that the 2 meshes blocks each other in the collision presets, then set "generate on hit events" to true, then you can add the "on hit" event node like in the tutorial, you can use the "other actor" reference to know who is colliding with the platform, and if it's the cube then you do whatever you want (like "the platform moves").

Hope it helps

more ▼

answered Aug 03 '17 at 03:12 AM

avatar image

veccher
1.1k 31 18 66

(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