Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • Turret.rar

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

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

Files

Previews only

Unreal Engine 5 C++ Tutorial - Turret #2

Project Files: https://www.patreon.com/posts/62672590 . 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. Turret model : https://free3d.com/3d-models/turret ► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧! https://www.patreon.com/codelikeme ►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits Full Adventure Tutorial Series: https://youtube.com/playlist?list=PLNTm9yU0zou5mxzKt2DUIE1QJSkGo7tvc Join this channel to get access to perks: https://www.youtube.com/channel/UClb6Jh9EBV7a_Nm52Ipll_Q/join Support my work: https://www.patreon.com/codelikeme Like my facebook page for more content : https://www.facebook.com/gamedevelopersclub/ Follow me on twitter : https://twitter.com/CodeLikeMe2 Follow me on reddit : https://www.reddit.com/user/codelikeme #CodeLikeMe #unrealengine #ue4 #indiegamedev

Comments

No comments found for this post.