Class SplineComponent
A spline component is a spline shape which can be used for other purposes (e.
Inheritance
System.Object
SplineComponent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class SplineComponent : PrimitiveComponent
Properties
|
Improve this Doc
View Source
bAllowDiscontinuousSpline
Declaration
public bool bAllowDiscontinuousSpline { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bClosedLoop
Declaration
public bool bClosedLoop { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bDrawDebug
Declaration
public bool bDrawDebug { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bInputSplinePointsToConstructionScript { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bLoopPositionOverride
Declaration
public bool bLoopPositionOverride { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bModifiedByConstructionScript
Declaration
public bool bModifiedByConstructionScript { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bShouldVisualizeScale
Declaration
public bool bShouldVisualizeScale { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bSplineHasBeenEdited
Declaration
public bool bSplineHasBeenEdited { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bStationaryEndpoints
Declaration
public bool bStationaryEndpoints { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static SplineComponent DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
DefaultUpVector
Default up vector in local space to be used when calculating transforms along the spline
Declaration
public Vector DefaultUpVector { get; set; }
Property Value
|
Improve this Doc
View Source
Duration
Specifies the duration of the spline in seconds
Declaration
public float Duration { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
EditorSelectedSplineSegmentColor
Color of a selected spline component segment in the editor
Declaration
public LinearColor EditorSelectedSplineSegmentColor { get; set; }
Property Value
|
Improve this Doc
View Source
EditorUnselectedSplineSegmentColor
Color of an unselected spline component segment in the editor
Declaration
public LinearColor EditorUnselectedSplineSegmentColor { get; set; }
Property Value
|
Improve this Doc
View Source
LoopPosition
Declaration
public float LoopPosition { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
ReparamStepsPerSegment
Number of steps per spline segment to place in the reparameterization table
Declaration
public int ReparamStepsPerSegment { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ScaleVisualizationWidth
Width of spline in editor for use with scale visualization
Declaration
public float ScaleVisualizationWidth { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SplineCurves
Declaration
public SplineCurves SplineCurves { get; set; }
Property Value
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddPoint(SplinePoint, Boolean)
Adds an FSplinePoint to the spline. This contains its input key, position, tangent, rotation and scale.
Declaration
public void AddPoint(SplinePoint Point, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
SplinePoint |
Point |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
AddPoints(Byte, Boolean)
Adds an array of FSplinePoints to the spline.
Declaration
public void AddPoints(byte Points, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Byte |
Points |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
AddSplineLocalPoint(Vector)
Adds a local space point to the spline
Declaration
public void AddSplineLocalPoint(Vector Position)
Parameters
Type |
Name |
Description |
Vector |
Position |
|
|
Improve this Doc
View Source
AddSplinePoint(Vector, Byte, Boolean)
Adds a point to the spline
Declaration
public void AddSplinePoint(Vector Position, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
Vector |
Position |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
AddSplinePointAtIndex(Vector, Int32, Byte, Boolean)
Adds a point to the spline at the specified index
Declaration
public void AddSplinePointAtIndex(Vector Position, int Index, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
Vector |
Position |
|
System.Int32 |
Index |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
AddSplineWorldPoint(Vector)
Adds a world space point to the spline
Declaration
public void AddSplineWorldPoint(Vector Position)
Parameters
Type |
Name |
Description |
Vector |
Position |
|
|
Improve this Doc
View Source
ClearSplinePoints(Boolean)
Clears all the points in the spline
Declaration
public void ClearSplinePoints(bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
FindDirectionClosestToWorldLocation(Vector, Byte)
Given a location, in world spcae, return a unit direction vector of the spline tangent closest to the location.
Declaration
public Vector FindDirectionClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
Given a location, in world space, return the input key closest to that location.
Declaration
public float FindInputKeyClosestToWorldLocation(Vector WorldLocation)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
FindLocationClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return the point on the curve that is closest to the location.
Declaration
public Vector FindLocationClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
FindRightVectorClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return a unit direction vector corresponding to the spline's right vector closest to the location.
Declaration
public Vector FindRightVectorClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
FindRollClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return the spline's roll closest to the location, in degrees.
Declaration
public float FindRollClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
FindRotationClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return rotation corresponding to the spline's rotation closest to the location.
Declaration
public Rotator FindRotationClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
FindScaleClosestToWorldLocation(Vector)
Given a location, in world space, return the spline's scale closest to the location.
Declaration
public Vector FindScaleClosestToWorldLocation(Vector WorldLocation)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
Returns
|
Improve this Doc
View Source
FindTangentClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return the tangent vector of the spline closest to the location.
Declaration
public Vector FindTangentClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
Given a location, in world space, return an FTransform closest to that location.
Declaration
public Transform FindTransformClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace, bool bUseScale)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseScale |
|
Returns
|
Improve this Doc
View Source
FindUpVectorClosestToWorldLocation(Vector, Byte)
Given a location, in world space, return a unit direction vector corresponding to the spline's up vector closest to the location.
Declaration
public Vector FindUpVectorClosestToWorldLocation(Vector WorldLocation, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
WorldLocation |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetArriveTangentAtSplinePoint(Int32, Byte)
Get the arrive tangent at spline point
Declaration
public Vector GetArriveTangentAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetDefaultUpVector(Byte)
Gets the default up vector used by this spline
Declaration
public Vector GetDefaultUpVector(byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetDirectionAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return a unit direction vector of the spline tangent there.
Declaration
public Vector GetDirectionAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetDirectionAtSplinePoint(Int32, Byte)
Get the location at spline point
Declaration
public Vector GetDirectionAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetDirectionAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there.
Declaration
public Vector GetDirectionAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetDistanceAlongSplineAtSplinePoint(Int32)
Get the distance along the spline at the spline point
Declaration
public float GetDistanceAlongSplineAtSplinePoint(int PointIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Given a distance along the length of this spline, return the corresponding input key at that point
Declaration
public float GetInputKeyAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetLeaveTangentAtSplinePoint(Int32, Byte)
Get the leave tangent at spline point
Declaration
public Vector GetLeaveTangentAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetLocalLocationAndTangentAtSplinePoint(Int32)
Get local location and tangent at a spline point
Declaration
public (Vector, Vector) GetLocalLocationAndTangentAtSplinePoint(int PointIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Returns
|
Improve this Doc
View Source
GetLocationAndTangentAtSplinePoint(Int32, Byte)
Get location and tangent at a spline point
Declaration
public (Vector, Vector) GetLocationAndTangentAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetLocationAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return the point in space where this puts you
Declaration
public Vector GetLocationAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetLocationAtSplinePoint(Int32, Byte)
Get the location at spline point
Declaration
public Vector GetLocationAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetLocationAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return the point in space where this puts you
Declaration
public Vector GetLocationAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetNumberOfSplinePoints()
Get the number of points that make up this spline
Declaration
public int GetNumberOfSplinePoints()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetRightVectorAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return a unit direction vector corresponding to the spline's right vector there.
Declaration
public Vector GetRightVectorAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetRightVectorAtSplinePoint(Int32, Byte)
Get the right vector at spline point
Declaration
public Vector GetRightVectorAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetRightVectorAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return the spline's right vector there.
Declaration
public Vector GetRightVectorAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetRollAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return the spline's roll there, in degrees.
Declaration
public float GetRollAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetRollAtSplinePoint(Int32, Byte)
Get the amount of roll at spline point, in degrees
Declaration
public float GetRollAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetRollAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return the spline's roll there, in degrees.
Declaration
public float GetRollAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetRotationAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return a rotation corresponding to the spline's rotation there.
Declaration
public Rotator GetRotationAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetRotationAtSplinePoint(Int32, Byte)
Get the rotation at spline point as a rotator
Declaration
public Rotator GetRotationAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetRotationAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return a rotation corresponding to the spline's position and direction there.
Declaration
public Rotator GetRotationAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetScaleAtDistanceAlongSpline(Single)
Given a distance along the length of this spline, return the spline's scale there.
Declaration
public Vector GetScaleAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
|
Improve this Doc
View Source
GetScaleAtSplinePoint(Int32)
Get the scale at spline point
Declaration
public Vector GetScaleAtSplinePoint(int PointIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Returns
|
Improve this Doc
View Source
GetScaleAtTime(Single, Boolean)
Given a time from 0 to the spline duration, return the spline's scale there.
Declaration
public Vector GetScaleAtTime(float Time, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetSplineLength()
Returns total length along this spline
Declaration
public float GetSplineLength()
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetSplinePointType(Int32)
Get the type of a spline point
Declaration
public byte GetSplinePointType(int PointIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
GetTangentAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return the tangent vector of the spline there.
Declaration
public Vector GetTangentAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetTangentAtSplinePoint(Int32, Byte)
Get the tangent at spline point. This fetches the Leave tangent of the point.
Declaration
public Vector GetTangentAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetTangentAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return the spline's tangent there.
Declaration
public Vector GetTangentAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
Given a distance along the length of this spline, return an FTransform corresponding to that point on the spline.
Declaration
public Transform GetTransformAtDistanceAlongSpline(float Distance, byte CoordinateSpace, bool bUseScale)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseScale |
|
Returns
|
Improve this Doc
View Source
Get the transform at spline point
Declaration
public Transform GetTransformAtSplinePoint(int PointIndex, byte CoordinateSpace, bool bUseScale)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseScale |
|
Returns
|
Improve this Doc
View Source
Given a time from 0 to the spline duration, return the spline's transform at the corresponding position.
Declaration
public Transform GetTransformAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity, bool bUseScale)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
System.Boolean |
bUseScale |
|
Returns
|
Improve this Doc
View Source
GetUpVectorAtDistanceAlongSpline(Single, Byte)
Given a distance along the length of this spline, return a unit direction vector corresponding to the spline's up vector there.
Declaration
public Vector GetUpVectorAtDistanceAlongSpline(float Distance, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetUpVectorAtSplinePoint(Int32, Byte)
Get the up vector at spline point
Declaration
public Vector GetUpVectorAtSplinePoint(int PointIndex, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
CoordinateSpace |
|
Returns
|
Improve this Doc
View Source
GetUpVectorAtTime(Single, Byte, Boolean)
Given a time from 0 to the spline duration, return the spline's up vector there.
Declaration
public Vector GetUpVectorAtTime(float Time, byte CoordinateSpace, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetWorldDirectionAtDistanceAlongSpline(Single)
Given a distance along the length of this spline, return a unit direction vector of the spline tangent there, in world space.
Declaration
public Vector GetWorldDirectionAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
|
Improve this Doc
View Source
GetWorldDirectionAtTime(Single, Boolean)
Given a time from 0 to the spline duration, return a unit direction vector of the spline tangent there.
Declaration
public Vector GetWorldDirectionAtTime(float Time, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetWorldLocationAtDistanceAlongSpline(Single)
Given a distance along the length of this spline, return the point in world space where this puts you
Declaration
public Vector GetWorldLocationAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
|
Improve this Doc
View Source
GetWorldLocationAtSplinePoint(Int32)
Get the world location at spline point
Declaration
public Vector GetWorldLocationAtSplinePoint(int PointIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Returns
|
Improve this Doc
View Source
GetWorldLocationAtTime(Single, Boolean)
Given a time from 0 to the spline duration, return the point in space where this puts you
Declaration
public Vector GetWorldLocationAtTime(float Time, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetWorldRotationAtDistanceAlongSpline(Single)
Given a distance along the length of this spline, return a rotation corresponding to the spline's rotation there, in world space.
Declaration
public Rotator GetWorldRotationAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
|
Improve this Doc
View Source
GetWorldRotationAtTime(Single, Boolean)
Given a time from 0 to the spline duration, return a rotation corresponding to the spline's position and direction there.
Declaration
public Rotator GetWorldRotationAtTime(float Time, bool bUseConstantVelocity)
Parameters
Type |
Name |
Description |
System.Single |
Time |
|
System.Boolean |
bUseConstantVelocity |
|
Returns
|
Improve this Doc
View Source
GetWorldTangentAtDistanceAlongSpline(Single)
Given a distance along the length of this spline, return the tangent vector of the spline there, in world space.
Declaration
public Vector GetWorldTangentAtDistanceAlongSpline(float Distance)
Parameters
Type |
Name |
Description |
System.Single |
Distance |
|
Returns
|
Improve this Doc
View Source
IsClosedLoop()
Check whether the spline is a closed loop or not
Declaration
public bool IsClosedLoop()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static SplineComponent New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
RemoveSplinePoint(Int32, Boolean)
Removes point at specified index from the spline
Declaration
public void RemoveSplinePoint(int Index, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
Index |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetClosedLoop(Boolean, Boolean)
Specify whether the spline is a closed loop or not. The loop position will be at 1.0 after the last point's input key
Declaration
public void SetClosedLoop(bool bInClosedLoop, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Boolean |
bInClosedLoop |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetClosedLoopAtPosition(Boolean, Single, Boolean)
Specify whether the spline is a closed loop or not, and if so, the input key corresponding to the loop point
Declaration
public void SetClosedLoopAtPosition(bool bInClosedLoop, float Key, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Boolean |
bInClosedLoop |
|
System.Single |
Key |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetDefaultUpVector(Vector, Byte)
Sets the default up vector used by this spline
Declaration
public void SetDefaultUpVector(Vector UpVector, byte CoordinateSpace)
Parameters
Type |
Name |
Description |
Vector |
UpVector |
|
System.Byte |
CoordinateSpace |
|
|
Improve this Doc
View Source
SetDrawDebug(Boolean)
Specify whether this spline should be rendered when the Editor/Game spline show flag is set
Declaration
public void SetDrawDebug(bool bShow)
Parameters
Type |
Name |
Description |
System.Boolean |
bShow |
|
|
Improve this Doc
View Source
SetLocationAtSplinePoint(Int32, Vector, Byte, Boolean)
Move an existing point to a new location
Declaration
public void SetLocationAtSplinePoint(int PointIndex, Vector InLocation, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Vector |
InLocation |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetSelectedSplineSegmentColor(LinearColor)
Specify selected spline component segment color in the editor
Declaration
public void SetSelectedSplineSegmentColor(LinearColor SegmentColor)
Parameters
|
Improve this Doc
View Source
SetSplineLocalPoints(Byte)
Sets the spline to an array of local space points
Declaration
public void SetSplineLocalPoints(byte Points)
Parameters
Type |
Name |
Description |
System.Byte |
Points |
|
|
Improve this Doc
View Source
SetSplinePoints(Byte, Byte, Boolean)
Sets the spline to an array of points
Declaration
public void SetSplinePoints(byte Points, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Byte |
Points |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetSplinePointType(Int32, Byte, Boolean)
Specify the type of a spline point
Declaration
public void SetSplinePointType(int PointIndex, byte Type, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
System.Byte |
Type |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetSplineWorldPoints(Byte)
Sets the spline to an array of world space points
Declaration
public void SetSplineWorldPoints(byte Points)
Parameters
Type |
Name |
Description |
System.Byte |
Points |
|
|
Improve this Doc
View Source
SetTangentAtSplinePoint(Int32, Vector, Byte, Boolean)
Specify the tangent at a given spline point
Declaration
public void SetTangentAtSplinePoint(int PointIndex, Vector InTangent, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Vector |
InTangent |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetTangentsAtSplinePoint(Int32, Vector, Vector, Byte, Boolean)
Specify the tangents at a given spline point
Declaration
public void SetTangentsAtSplinePoint(int PointIndex, Vector InArriveTangent, Vector InLeaveTangent, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Vector |
InArriveTangent |
|
Vector |
InLeaveTangent |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetUnselectedSplineSegmentColor(LinearColor)
Specify unselected spline component segment color in the editor
Declaration
public void SetUnselectedSplineSegmentColor(LinearColor SegmentColor)
Parameters
|
Improve this Doc
View Source
SetUpVectorAtSplinePoint(Int32, Vector, Byte, Boolean)
Specify the up vector at a given spline point
Declaration
public void SetUpVectorAtSplinePoint(int PointIndex, Vector InUpVector, byte CoordinateSpace, bool bUpdateSpline)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Vector |
InUpVector |
|
System.Byte |
CoordinateSpace |
|
System.Boolean |
bUpdateSpline |
|
|
Improve this Doc
View Source
SetWorldLocationAtSplinePoint(Int32, Vector)
Move an existing point to a new world location
Declaration
public void SetWorldLocationAtSplinePoint(int PointIndex, Vector InLocation)
Parameters
Type |
Name |
Description |
System.Int32 |
PointIndex |
|
Vector |
InLocation |
|
|
Improve this Doc
View Source
UpdateSpline()
Update the spline tangents and SplineReparamTable
Declaration
public void UpdateSpline()
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to SplineComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator SplineComponent(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns