Open Rails

AnimatedPart Members

AnimatedPart overview

Public Static Methods

Swap Swap the pointers around.

Public Instance Constructors

AnimatedPart Constructor Construct with a link to the shape that contains the animated parts

Public Instance Fields

FrameCount
MatrixIndexes

Public Instance Methods

AddMatrix All the matrices associated with this part are added during initialization by the MSTSWagon constructor
Empty Ensure the shape file contained parts of this type and those parts have an animation section.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetType (inherited from Object)Gets the Type of the current instance.
SetFrameClamp Sets the animation to a particular frame whilst clamping it to the frame count range.
SetFrameCycle Sets the animation to a particular frame whilst cycling back to the start as input goes beyond the last frame.
SetFrameWrap Sets the animation to a particular frame whilst wrapping it around the frame count range.
SetState Bypass the normal slow transition and jump the part immediately to this new state
ToString (inherited from Object)Returns a String that represents the current Object.
UpdateLoopOverloaded. Updates an animated part that loops (e.g. running gear), changing by the given amount.
UpdateState Updates an animated part that toggles between two states (e.g. pantograph, doors, mirrors).

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

AnimatedPart Class | Orts.Viewer3D Namespace