Action when certain mesh collides with eachother
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!
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
answered Aug 03 '17 at 03:12 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here