<style>.lazy{display:none}</style> Skip to main content


Unreal C++ Props – Destructible Components

By Development, Props, Tutorial, Unreal One Comment

Hey guys,

Today we are going to start introducing props for our character to interact with and I can’t think of anything better then creating a bunch of things to smash.

For this tutorial we will use the Apex Destruction plugin to generate some destructible meshes which we can then hookup to our destructible components.

If you would like to permanently configure this plugin so it’s always enabled here is a quick overview on how plugins are managed in Unreal.

The started project can be found on the GitHub project page.

Additionally here a bunch of links if you would like to read a bit more about these various components:

Unreal C++ Tutorial – Player Character Series – Punch – Part 3 – Collision events

By Development, Tutorial, Unreal No Comments

Hey guys,

Today we are going to jump into exploring collision events and continue from our last tutorial.

Now to get our collision events working we are going to go over the following topics:

  • Delegates – 04:00 – delegates allow us to defer logic from specific events to our internal methods based on aligning our method signature with what the delegate expects.
  • OnComponentHit – 05:00 – OnComponentHit provides is with information when a block event occurs between two entities in the world.
  • FHitResult – 15:00 – the FHitResult struct contains a lot of important information not only about the entity we are colliding with but also all the details about the collision, point of impact, various transform vectors, time, distance, etc etc
  • OnComponentBeginOverlap / OnComponentEndOverlap – 18:00 – these are notifications that will fire during the course of our animation playback and trigger specific events on our player character. In our case we are simply going to enable the collisions on our collision boxes.

As usual we have our starter project on GitHub as well as the final version for you to try out. Additionally here are a few links to do some further reading on the items we discussed.

Thanks for taking a look and tune back for more.