UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SimpleSuspension.h File Reference
#include "CoreMinimal.h"
#include "Math/UnrealMath.h"
#include "Templates/Function.h"
#include "Containers/Array.h"

Go to the source code of this file.

Classes

struct  FSimpleSuspensionSpringParams
 
struct  FSimpleSuspensionParams
 
struct  FSimpleSuspensionState
 
struct  FSimpleSuspension
 
struct  FSimpleSuspensionHelpers
 

Typedefs

using FSimpleSuspensionRaycast = TFunction< bool(const FVector &RayBegin, const FVector &RayEnd, const int32 SpringIndex, FVector &OutRayHitLocation, FVector &OutRayHitNormal)>
 

Variables

const FSimpleSuspensionRaycast SimpleSuspensionRaycastGroundPlane
 

Typedef Documentation

◆ FSimpleSuspensionRaycast

Variable Documentation

◆ SimpleSuspensionRaycastGroundPlane

const FSimpleSuspensionRaycast SimpleSuspensionRaycastGroundPlane
Initial value:
= [](const FVector& RayBegin, const FVector& RayEnd, const int32 SpringIndex, FVector& OutRayHitLocation, FVector& OutRayHitNormal)
{
const FVector Diff = RayEnd - RayBegin;
if (FMath::Abs(ProjDiff) > UE_SMALL_NUMBER)
{
const FVector::FReal Lambda = -ProjA / ProjDiff;
if (Lambda > 0.f && Lambda <= 1.f)
{
OutRayHitLocation = RayBegin + (Lambda * Diff);
return true;
}
}
return false;
}
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 UE_SMALL_NUMBER
Definition UnrealMathUtility.h:130
static UE_FORCEINLINE_HINT double DotProduct(const TVector< double > &A, const TVector< double > &B)
Definition Vector.h:1559
static CORE_API const TVector< double > UpVector
Definition Vector.h:85
double FReal
Definition Vector.h:55