DPSF by Daniel Schroeder

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

.NET API 168,448 bytes


Magnet that attracts particles to/from a plane in 3D space
public Vector3 Normal { get; set; }

The Normal direction of the Plane (i.e. the up direction away from the plane). This value is automatically normalized when it is set.

public Vector3 PositionOnPlane { get; set; }

A 3D point on the Plane

public MagnetPlane(Vector3 sPositionOnPlane, Vector3 sNormal, MagnetModes eMode, DistanceFunctions eDistanceFunction, float fMinDistance, float fMaxDistance, float fMaxForce, int iType)

Explicit Constructor

public MagnetPlane(MagnetPlane cMagnetToCopy)

Copy Constructor

public void CopyFrom(MagnetPlane cMagnetToCopy)

Copies the given Plane Magnet's data into this Plane Magnet's data