Mostly Harmless

UE3:SplineActor (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 05:24, 17 January 2010 by (Talk)

Jump to: navigation, search
UDK Object >> Actor >> SplineActor
Package: 
Engine
Direct subclass:
SplineLoftActor


Properties

Property group 'SplineActor'

bDisableDestination

Type: bool

Splines connectin to this SplineActor will be marked as bSplineDisabled

SplineActorTangent

Type: Object.Vector

Tangent of spline at this actor - this is in local space

Default value:

Member Value
X 300.0
Y 0.0
Z 0.0

SplineColor

Type: Object.Color

Color to use to draw the splines

Default value:

Member Value
A 255
B 255
G 0
R 255

SplineVelocityOverTime

Type: Object.InterpCurveFloat

Modifiers: editinline

For actors using this spline, how quickly to move along the spline over time

Internal variables

bAlreadyVisited

Type: bool

Modifiers: transient


bestPathWeight

Type: int

Modifiers: transient


Connections

Type: array<SplineConnection>

Array of connections

LinksFrom

Type: array<SplineActor>

Set of SplineActors that link to this one

nextOrdered

Type: SplineActor

Modifiers: transient


previousPath

Type: SplineActor

Modifiers: transient


prevOrdered

Type: SplineActor

Modifiers: transient


visitedWeight

Type: int

Modifiers: transient


Default values

Property Value
CollisionType COLLIDE_CustomDefault
Components[0] SpriteComponent'Sprite'

Subobjects

Sprite

Class: Engine.SpriteComponent

Property Value
AlwaysLoadOnClient False
AlwaysLoadOnServer False
HiddenGame True
ReplacementPrimitive None
Scale 0.5
Sprite Texture2D'EditorResources.Crowd.T_Crowd_Spline'

Structs

SplineConnection

Modifiers: native

Struct containing information about one connection from this SplineActor to another.

SplineComponent SplineComponent 
Component that stores actual spline points, tangents, reparam table etc
SplineActor ConnectTo 
Which SplineActor this one connects to - spline is between these locations

Functions

Native functions

AddConnectionTo

native function AddConnectionTo (SplineActor NextActor)

Create a connection to another SplineActor

BreakAllConnections

native function BreakAllConnections ()

Break all connections to and from this SplineActor

BreakAllConnectionsFrom

native function BreakAllConnectionsFrom ()

Break all connections from this SplineActor

BreakConnectionTo

native function BreakConnectionTo (SplineActor NextActor)

Breaks a connection from this SplineActor to NextActor

FindSplineComponentTo

native function SplineComponent FindSplineComponentTo (SplineActor NextActor)

Returns the SplineComponent that connects this SplineActor to NextActor. Returns None if not connected

FindSplinePathTo

native function bool FindSplinePathTo (SplineActor Goal, out array<SplineActorOutRoute)

Find a path through network from this point to Goal, and put results into OutRoute.

FindTargetForComponent

native function SplineActor FindTargetForComponent (SplineComponent SplineComp)

Returns the SplineActor that this SplineComponent connects to.

GetAllConnectedSplineActors

native function GetAllConnectedSplineActors (out array<SplineActorOutSet)

Find all SplineActors connected to (and including) this one

GetBestConnectionInDirection

native function SplineActor GetBestConnectionInDirection (Object.Vector DesiredDir, optional bool bUseLinksFrom)

Returns a SplineActor that takes you most in the specified direction. If no connections, returns None. If bUseLinksFrom is true, the best connection TO this spline will be returned

GetRandomConnection

native function SplineActor GetRandomConnection (optional bool bUseLinksFrom)

If bUseLinksFrom is false, returns a random SplineActor that is connected to from this SplineActor. Otherwise, returns a random SplineActor that connects to this SplineActor. If no connections, returns None.

GetWorldSpaceTangent

native function Object.Vector GetWorldSpaceTangent ()

Returns spline tangent at this actor, in world space

IsConnectedTo

native function bool IsConnectedTo (SplineActor NextActor, bool bCheckForDisableDestination) const

Returns TRUE if there is a connection from this SplineActor to NextActor

UpdateConnectedSplineComponents

native function UpdateConnectedSplineComponents (bool bFinish)

Create/destroy/update SplineComponents belonging to this SplineActor, and all SplineActors that link to this.

UpdateSplineComponents

native function UpdateSplineComponents (bool bFinish)

Create/destroy/update SplineComponents belonging to this SplineActor.

Other instance functions

OnToggle

function OnToggle (SeqAct_Toggle inAction)

Handle Toggle action for setting bDisableDestination