DPSF by Daniel Schroeder

<PackageReference Include="DPSF" Version="2.5.0" />

.NET API 168,448 bytes


Inherits from the Orientation2D class and adds functionality to remember the object's last orientation.
public float PreviousOrientation

The object's last orientation (before Update() was called).

public bool UpdatePreviousOrientationAutomatically { get; set; }

Set this to False to not have the Update() function update the PreviousOrientation value. Instead it will be up to an external object to update the PreviousOrientation property each frame.

Default value is True.

Default Constructor.

Copy Constructor.

Copy Constructor.

public void CopyFrom(Orientation2DWithPreviousOrientation orientationToCopy)

Copies the given Orientation2DWithPreviousOrientation object's data into this object's data.