Urho.SplinePath Class

Spline for creating smooth movement based on Speed along a set of Control Points modified by the Interpolation Mode.

See Also: SplinePath

Syntax

public class SplinePath : Component

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.SplinePath are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.SplinePath which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.SplinePath, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.SplinePath linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

ControlledIdAttrUInt32. Get Controlled Node ID attribute. Or Set Controlled Node ID attribute.
ControlledNodeNode. Get the controlled Node. Or Set the Node to be moved along the SplinePath.
[read-only]
FinishedBoolean. Returns whether the movement along the SplinePath is complete.
InterpolationModeInterpolationMode. Get the Interpolation Mode. Or Set the Interpolation Mode.
[read-only]
LengthSingle. Get the length of SplinePath;
[read-only]
PositionVector3. Get the parent Node's last position on the spline.
SpeedSingle. Get the movement Speed. Or Set the movement Speed.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

AddControlPoint(Node, UInt32)
Add a Node to the SplinePath as a Control Point.
override
ApplyAttributes()
Apply Attributes to the SplinePath.
ClearControlPoints()
Clear the Control Points from the SplinePath.
override
DrawDebugGeometry(DebugRenderer, Boolean)
Draw the Debug Geometry.
GetPoint(Single) : Vector3
Get a point on the SplinePath from 0.f to 1.f where 0 is the start and 1 is the end.
Move(Single)
Move the controlled Node to the next position along the SplinePath based off the Speed value.
static
RegisterObject(Context)
Register object factory.
RemoveControlPoint(Node)
Remove a Node Control Point from the SplinePath.
Reset()
Reset movement along the path.
SetPosition(Single)
Set the controlled Node's position on the SplinePath.