In this tutorial I’m going to show you how to create a basic Patrol AI. This post may seem long, however when……
In this tutorial, you’re going to see how you can consume Data Tables using C++. To create a Data Table you need a struct, so for the first part of this tutorial I’m going to create a struct in C++ code.
Creating the necessary Struct
Create a struct and in the header file type in the following variables(in……
Unreal Engine 4 provides an easy way to generate Hit Events. We have two different types of Hit Events:
OnHit event, which fires when the actor hits something
Receive Hit event, which fires when the actor gets hit by something
Let’s see how we can use these functions.
Creating a Falling Actor
In this post, I’m going to create two……
In Unreal Engine 4 provides an easy way to generated overlap events. Overlap events consist of BeginOverlap and EndOverlap. In this tutorial I’m going to create a custom trigger that uses both functions.
Creating a Custom Trigger Box
In order to create a custom trigger box add a new C++ class which inherits from the TriggerBox class…….
One can best describe the Radial Impulse as a bomb explosion, emitting force from it’s core to all nearby objects.
Creating the necessary parameters of the “Bomb” Actor
Create a class which inherits from Actor. To create a Radial Impulse we need:
The origin of the impulse
The radius of the impulse
The strength of the impulse
The impulse fall off distance (this……
The difference between the Force and Impulse is that Impulse is recommended for one time instant burst. To apply an impulse to an Actor, follow up this tutorial but in the logic of the MoveChosenActor type in the following code:
PS: I’m aware of the fact that we are not adding a force in this case,……
Sometimes, we need to apply a force to an Actor. The force we apply is like a “thruster”. It’s good for adding a burst over some (non zero) time and it should be called every frame for the duration of the force. In order to apply a force you need a Primitive Component.
In this tutorial however, I won’t……
In this tutorial I’m going to create a trace for multiple objects. While Unreal Engine provides a set of different shapes that developers can use in this post I’m going to create a sphere. Here is the end result of the tutorial:
Raycasting is a special collision technique in which you emit a single ray (in this case at least!), with fixed length, origin and direction that has a Hit Result which contains information about the Object or Actor that the ray collided with.
For this post, I’m going to use a FirstPerson C++ Template. I will create……
By now, you should have noticed that in every Tick function there is a float parameter named DeltaTime. This parameter is equal to the seconds it took in order for the last frame to be completed. In this tutorial, I’m going to create a function which fires every X seconds using Timers
Creating a Timer
Support my tutorialsSupport my UE4 tutorials by donating an amount of your choice!
- April 23, 2020
- April 17, 2020
- April 14, 2020
- Unreal Engine 4
- Unreal Engine 4
- Game jam, Unreal Engine 4