tengri/Source/TengriPlatformer/Movement/Collision/TengriSweepResult.h

34 lines
835 B
C

// Request Games © All rights reserved
// Source/TengriPlatformer/Movement/Collision/TengriSweepResult.h
#pragma once
#include "CoreMinimal.h"
#include "TengriSweepResult.generated.h"
/**
* Result of a capsule sweep operation.
* Contains final location, hit information, and collision metadata.
*/
USTRUCT(BlueprintType)
struct TENGRIPLATFORMER_API FTengriSweepResult
{
GENERATED_BODY()
/** Final location after sweep (either End or hit location) */
UPROPERTY(BlueprintReadOnly)
FVector Location = FVector::ZeroVector;
/** Hit result if collision occurred */
UPROPERTY(BlueprintReadOnly)
FHitResult Hit;
/** True if sweep was blocked by collision */
UPROPERTY(BlueprintReadOnly)
bool bBlocked = false;
/** Number of collision iterations performed */
UPROPERTY(BlueprintReadOnly)
int32 CollisionCount = 0;
};