Telekinesis System on UE5 - Tutorial

Опубликовано: 12 Декабрь 2023
на канале: LocoDev
3,449
157

Welcome to this comprehensive tutorial on creating a telekinesis system in Unreal Engine 5. Learn how to levitate and launch objects using enhanced input, perfect for beginners looking to add unique gameplay mechanics to their projects.

📚You'll learn how to:
- Setup Enhanced Inputs.
- Setup Blueprint Interfaces.
- Setup Gravity.
- Other Calculations.

This system includes levitating and throwing objects with physics simulation. It serves as the basic framework without character animations. I have used Enhanced Inputs and Blueprint Interfaces to enhance performance, along with optimized coding, separated functions and events for each essential action.

Note: This project is for 5.3 + UE versions.

Input Instructions:
- Hold the Right Mouse Button: Levitates the Cube.
- Hold the Left Mouse Button and Release: Launches the Cube.
- The longer the Left Mouse Button is held before release, the greater the applied launch force.

For any questions, comment down below and I will be happy to help!

🔗Links:
✅ Download the project files
  / 93998249  

👇Follow me:
Discord Server:   / discord  
Twitter:   / locodev7701  
Instagram:   / devloco  

Patreon:   / locodev  

🎬Chapters:
0:00 Introduction
0:09 Overview of the Telekinesis System
0:33 Character Setup and Base Code
1:10 Enhanced Input Configuration
1:55 Understanding Input Actions
4:02 Creating Input Actions for Telekinesis
4:50 Setting Up the Right and Left Mouse Button Actions
6:09 Debugging Input Actions
7:44 Setting Up the Cube Blueprint
8:48 Simulating Physics for the Cube
9:08 Creating Blueprint Interfaces
10:11 Adding Functions to the Interface
11:03 Implementing Sphere Trace for Cube Detection
12:19 Checking Interface Implementation
13:19 Creating Functions in the Interface
14:01 Setting Up the Levitate Function
14:27 Implementing Levitate Cube Event
15:55 Configuring Levitate Function Logic
18:44 Setting Up Release Cube Event
19:59 Implementing Pre-Launch Event
21:08 Setting Up Cube Rotation Function
24:24 Integrating Rotation Logic
26:19 Adjusting Rotation and Lag Parameters
27:00 Ensuring Proper Variable Initialization
28:01 Debugging and Testing the Levitate Function
30:30 Implementing the Launch Function
32:24 Configuring Launch Force Based on Player Input
35:30 Adding Sound Effects on Cube Launch
37:07 Final Testing and Adjustments
42:05 Final Result and Demonstration
43:25 Outro

Hashtags:
#ue5 #gamedevelopment #UnrealEngine5 #gameblueprints #telekinesis