UE3:SplineComponent (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
UDK Object >> Component >> ActorComponent >> PrimitiveComponent >> SplineComponent
Package:
Engine


Properties

Property group 'SplineComponent'

bSplineDisabled

Type: bool

If TRUE, this spline is for whatever reason disabled, and will be drawn in red.

SplineArrowSize

Type: float

Size of arrow on end of spline. If zero, no arrow drawn

Default value: 60.0

SplineColor

Type: Object.Color

Color of spline

Default value:

Member Value
A 255
B 255
G 0
R 255

SplineCurviness

Type: float

Modifiers: editconst

This is how curvy this spline is. 1.0f is straight and anything below that is curvy! We are doing a simplistic calculate of: vsize(points) / Length Of Spline

SplineDrawRes

Type: float

Resolution to draw spline at

Default value: 0.1

SplineInfo

Type: Object.InterpCurveVector

Actual data for spline. Locations and tangents are in world space.

SplineReparamTable

Type: Object.InterpCurveFloat

Input, distance along curve, output, parameter that puts you there.

Native functions

GetLocationAtDistanceAlongSpline

native function Object.Vector GetLocationAtDistanceAlongSpline (float Distance) const

Given a distance along the length of this spline, return the point in space where this puts you

GetSplineLength

native function float GetSplineLength () const

Returns total length along this spline

GetTangentAtDistanceAlongSpline

native function Object.Vector GetTangentAtDistanceAlongSpline (float Distance) const

Given a distance along the length of this spline, return the direction of the spline there. Note, result is non-unit length.

UpdateSplineCurviness

native function UpdateSplineCurviness ()

This will update the spline curviness value *

UpdateSplineReparamTable

native function UpdateSplineReparamTable ()

Update the SplineReparamTable