![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SplineComponent.h>
Public Member Functions | |
| bool | operator== (const FSplineCurves &Other) const |
| bool | operator!= (const FSplineCurves &Other) const |
| ENGINE_API void | UpdateSpline (bool bClosedLoop=false, bool bStationaryEndpoints=false, int32 ReparamStepsPerSegment=10, bool bLoopPositionOverride=false, float LoopPosition=0.0f, const FVector &Scale3D=FVector(1.0f)) |
| ENGINE_API float | GetSegmentLength (const int32 Index, const float Param, bool bClosedLoop=false, const FVector &Scale3D=FVector(1.0f)) const |
| ENGINE_API float | GetSplineLength () const |
Static Public Member Functions | |
| static FSplineCurves | FromSplineInterface (const FSpline &InProxy) |
Public Attributes | |
| FInterpCurveVector | Position |
| FInterpCurveQuat | Rotation |
| FInterpCurveVector | Scale |
| FInterpCurveFloat | ReparamTable |
| uint32 | Version = 0xffffffff |
|
inlinestatic |
| float FSplineCurves::GetSegmentLength | ( | const int32 | Index, |
| const float | Param, | ||
| bool | bClosedLoop = false, |
||
| const FVector & | Scale3D = FVector(1.0f) |
||
| ) | const |
Returns the length of the specified spline segment up to the parametric value given
| float FSplineCurves::GetSplineLength | ( | ) | const |
Returns total length along this spline
|
inline |
|
inline |
| void FSplineCurves::UpdateSpline | ( | bool | bClosedLoop = false, |
| bool | bStationaryEndpoints = false, |
||
| int32 | ReparamStepsPerSegment = 10, |
||
| bool | bLoopPositionOverride = false, |
||
| float | LoopPosition = 0.0f, |
||
| const FVector & | Scale3D = FVector(1.0f) |
||
| ) |
Update the spline's internal data according to the passed-in params
| bClosedLoop | Whether the spline is to be considered as a closed loop. |
| bStationaryEndpoints | Whether the endpoints of the spline are considered stationary when traversing the spline at non-constant velocity. Essentially this sets the endpoints' tangents to zero vectors. |
| ReparamStepsPerSegment | Number of steps per spline segment to place in the reparameterization table |
| bLoopPositionOverride | Whether to override the loop position with LoopPosition |
| LoopPosition | The loop position to use instead of the last key |
| Scale3D | The world scale to override |
| FInterpCurveVector FSplineCurves::Position |
Spline built from position data.
| FInterpCurveFloat FSplineCurves::ReparamTable |
Input: distance along curve, output: parameter that puts you there.
| FInterpCurveQuat FSplineCurves::Rotation |
Spline built from rotation data.
| FInterpCurveVector FSplineCurves::Scale |
Spline built from scale data.
| uint32 FSplineCurves::Version = 0xffffffff |