Skip to content
Snippets Groups Projects

Draft: Improve walking implementation

Closed Jan Delember requested to merge feature/improve-walking into 4.26
All threads resolved!
2 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline

Files

@@ -247,11 +247,12 @@ void UVRPawnMovement::ShiftVertically(float Distance, float VerticalAcceleration
@@ -247,11 +247,12 @@ void UVRPawnMovement::ShiftVertically(float Distance, float VerticalAcceleration
}
}
}
}
FHitResult UVRPawnMovement::CreateCapsuleTrace(const FVector Start, FVector End, bool DrawDebug) const
FHitResult UVRPawnMovement::CreateCapsuleTrace(const FVector Start, FVector End, bool DrawDebug)
{
{
const EDrawDebugTrace::Type DrawType = DrawDebug ? EDrawDebugTrace::Type::ForDuration : EDrawDebugTrace::Type::None;
const EDrawDebugTrace::Type DrawType = DrawDebug ? EDrawDebugTrace::Type::ForDuration : EDrawDebugTrace::Type::None;
TArray<AActor*> ActorsToIgnore;
if(ActorsToIgnore.Num()==0){
ActorsToIgnore.Add(GetOwner());
ActorsToIgnore.Add(GetOwner());
 
}
//UE_LOG(LogTemp, Warning, TEXT("Capsule from %s to %s"), *Start.ToString(), *End.ToString())
//UE_LOG(LogTemp, Warning, TEXT("Capsule from %s to %s"), *Start.ToString(), *End.ToString())
Loading