UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Sweeps.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Chaos/Core.h"
5
6namespace Chaos::Sweeps
7{
8 enum class ESweepFlags
9 {
10 None = 0,
11 MTD = (1 << 9),
12 };
14
15 CHAOSCORE_API bool SweepSphereVsSphere(const FVec3& SweepStart, const FVec3& SweepDir, const FReal SweepLength, const FReal Sphere0Radius, const FVec3& Sphere1Center, const FReal Sphere1Radius, const ESweepFlags Flags, FReal& OutTime, FVec3& OutPosition, FVec3& OutNormal);
16
17 CHAOSCORE_API bool SweepSphereVsAabb(const FVec3& SweepStart, const FVec3& SweepDir, const FReal SweepLength, const FReal SphereRadius, const FVec3& AabbMin, const FVec3& AabbMax, const ESweepFlags Flags, FReal& OutTime, FVec3& OutPosition, FVec3& OutNormal, int32& OutFaceIndex);
18
19 CHAOSCORE_API bool SweepSphereVsCapsule(const FVec3& SweepStart, const FVec3& SweepDir, const FReal SweepLength, const FReal SphereRadius,
20 const FReal CapsuleRadius, const FReal CapsuleHeight, const FVec3& CapsuleAxis, const FVec3& CapsuleX1, const FVec3& CapsuleX2,
21 const ESweepFlags Flags, FReal& OutTime, FVec3& OutPosition, FVec3& OutNormal);
22} // namespace Chaos::Sweeps
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
Definition Sweeps.cpp:8
bool SweepSphereVsAabb(const FVec3 &SweepStart, const FVec3 &SweepDir, const FReal SweepLength, const FReal SphereRadius, const FVec3 &AabbMin, const FVec3 &AabbMax, const ESweepFlags Flags, FReal &OutTime, FVec3 &OutPosition, FVec3 &OutNormal, int32 &OutFaceIndex)
Definition Sweeps.cpp:19
bool SweepSphereVsSphere(const FVec3 &SweepStart, const FVec3 &SweepDir, const FReal SweepLength, const FReal Sphere0Radius, const FVec3 &Sphere1Center, const FReal Sphere1Radius, const ESweepFlags Flags, FReal &OutTime, FVec3 &OutPosition, FVec3 &OutNormal)
Definition Sweeps.cpp:9
bool SweepSphereVsCapsule(const FVec3 &SweepStart, const FVec3 &SweepDir, const FReal SweepLength, const FReal SphereRadius, const FReal CapsuleRadius, const FReal CapsuleHeight, const FVec3 &CapsuleAxis, const FVec3 &CapsuleX1, const FVec3 &CapsuleX2, const ESweepFlags Flags, FReal &OutTime, FVec3 &OutPosition, FVec3 &OutNormal)
Definition Sweeps.cpp:30
ESweepFlags
Definition Sweeps.h:9
FRealDouble FReal
Definition Real.h:22