Open Rails

AnimatedPart Methods

The methods of the AnimatedPart class are listed below. For a complete list of AnimatedPart class members, see the AnimatedPart Members topic.

Public Static Methods

Swap Swap the pointers around.

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