commiting Source folder. Got forgotten in previous commits
This commit is contained in:
26
Source/lost_planet/Public/customCharacterMovementComponent.h
Normal file
26
Source/lost_planet/Public/customCharacterMovementComponent.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/CharacterMovementComponent.h"
|
||||
#include "customCharacterMovementComponent.generated.h"
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class LOST_PLANET_API UCustomCharacterMovementComponent : public UCharacterMovementComponent
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
UCustomCharacterMovementComponent();
|
||||
|
||||
protected:
|
||||
// Override PhysCustom to handle custom movement mode behaviors
|
||||
virtual void PhysCustom(float DeltaTime, int32 Iterations) override;
|
||||
virtual void OnMovementModeChanged(EMovementMode PreviousMovementMode, uint8 PreviousCustomMode) override;
|
||||
static bool SweepForwardForWall(const ACharacter* Character, FHitResult& OutHit, float SweepDistance = 100.f);
|
||||
};
|
||||
Reference in New Issue
Block a user