Neither am I.
In CharacterMovementComponent.cpp I can see the following:
// Validate the floor check
if (CurrentFloor.IsWalkableFloor())
{
if (ShouldCatchAir(OldFloor, CurrentFloor))
{
HandleWalkingOffLedge(OldFloor.HitResult.ImpactNormal, OldFloor.HitResult.Normal, OldLocation, timeTick);
if (IsMovingOnGround())
{
// If still walking, then fall. If not, assume the user set a different mode they want to keep.
StartFalling(Iterations, remainingTime, timeTick, Delta, OldLocation);
}
return;
}
AdjustFloorHeight();
SetBase(CurrentFloor.HitResult.Component.Get(), CurrentFloor.HitResult.BoneName);
}
I’m assuming if I comment out the ‘if (ShouldCatchAir(OldFloor, CurrentFloor))’ block I should just be able to set the falling movement mode manually based on a path trace?
Unfortunately I’m having trouble creating a new C++ class. I’m not a programmer and have no idea what I’m doing wrong here. Went to Tools > New C++ Class and created a new empty C++ class.
Project now includes sources, please close the editor and build from your IDE.
Successfully added class ‘MyCharacterMovementComponent’, however you must recompile the ‘TestProject’ module before it will appear in the Content Browser. Would you like to edit the code now?
Chose ‘Yes’.
I can see a whole slew of errors already with the default code in Visual Studio. 'Cannot open source file ‘CoreMinimal.h’, ‘name followed by ‘::’ must be a class or namespace name’, ‘incomplete type not allowed’, and so on. Tried compiling before changing anything, build failed with:
The command ““D:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat” TestProjectEditor Win64 Development -Project=“E:\Projects\Game Development\TestProject\TestProject.uproject” -WaitMutex -FromMsBuild” exited with code 6.
Restarted the Unreal Editor.
The following modules are missing or built with a different engine version: TestProject. Would you like to rebuild them now?
Chose ‘Yes’.
TestProject could not be compiled. Try rebuilding from source manually
Can no longer open my project.