SamSuka
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine 5 C++ Tutorial - Turret #2

This is part 2 of the Turret system in unreal engine 5 using C++. Today, we are going to work on how to smoothly rotate the turret with a constant rotation speed. Last time we implemented on the same feature but the rotation speed was not constant as we were simply using the RInterp node to get the rotation closer to the target rotation we need. This part was done in animation blueprints so that we were able to implement the feature fast and test our prototype. Here, we will implement a custom function in C++ to calculate the target rotation of the turret and a few other functions to set the rotation progressively to get the desired rotation. SO, the important bits of the logic would be transferred back to C++ and anim blueprint will not be responsible for any logical features of the turret.

password=CodeLikeMe_Turr

Unreal Engine 5 C++ Tutorial - Turret #2

More Creators