C# Class FlatRedBall.Math.Splines.SplinePoint

A point in a Spline storing position, velocity, acceleration, and time information.
Datei anzeigen Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
Acceleration Microsoft.DirectX.Vector3
Position Microsoft.DirectX.Vector3
Time double
UseCustomVelocityValue bool
Velocity Microsoft.DirectX.Vector3

Public Methods

Method Description
Clone ( ) : object
SplinePoint ( ) : System
SplinePoint ( float x, float y, float z, double time ) : System
ToString ( ) : string

Method Details

Clone() public method

public Clone ( ) : object
return object

SplinePoint() public method

public SplinePoint ( ) : System
return System

SplinePoint() public method

public SplinePoint ( float x, float y, float z, double time ) : System
x float
y float
z float
time double
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Acceleration public_oe property

The acceleration set when passing through this SplinePoint. This property is usually automatically set by the containing Spline.
public Microsoft.DirectX.Vector3 Acceleration
return Microsoft.DirectX.Vector3

Position public_oe property

The position of the SplinePoint in absolute world coordinates.
public Microsoft.DirectX.Vector3 Position
return Microsoft.DirectX.Vector3

Time public_oe property

The time relative to the start of the Spline when an object moving through the Spline will pass through this point.
public double Time
return double

UseCustomVelocityValue public_oe property

Controls whether the Velocity value is unchanged by calling CalculateVelocities on the Spline. By default this is false, which means velocity on this SplinePoint will be set according to the position of the neighboring SplinePoints. If this value is true, then the velocity on this will not be changed by Spline.CalculateVelocities.
public bool UseCustomVelocityValue
return bool

Velocity public_oe property

The velocity of an object as it passes through this SplinePoint when moving along a Spline.
public Microsoft.DirectX.Vector3 Velocity
return Microsoft.DirectX.Vector3