8000 GitHub - lootera89/LedgeDetection: A simple, optimized, and tweakable ledge detection system for Unreal Engine 5.3+, built in C++. It auto-detects ledges ahead and stops the player from walking off.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple, optimized, and tweakable ledge detection system for Unreal Engine 5.3+, built in C++. It auto-detects ledges ahead and stops the player from walking off.

License

Notifications You must be signed in to change notification settings

lootera89/LedgeDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ledge Detection & Blocking System for Unreal Engine 5.3+

This is a lightweight C++ system to prevent your character from walking off high ledges,
while also keeping the jump in between ledges enabled (Which can easily be toggled off aswell!) It's simple, optimized, and works out of the box, no plugins or extra setup required.

What It Does

  • Casts line traces in front of the character
  • Checks if the player is about to walk off a ledge
  • Blocks forward movement if a fall is detected
  • All values are tweakable in the header file

How to Use

Everything is inside the Source/LedgeDetection/LedgeDetectionCharacter.cpp file. If you want to copy the code to your own character class, just search for Copy and copy the part between the following comments:

///////// COPY FROM HERE START ////////
... code ...
///////// COPY FROM HERE END /////////

Make sure to replace the actor/class name where necessary to match your character.

If you have any questions or run into issues, feel free to reach out to me on Discord:
@lootera89 I'll be happy to help.

5469

About

A simple, optimized, and tweakable ledge detection system for Unreal Engine 5.3+, built in C++. It auto-detects ledges ahead and stops the player from walking off.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0