collapse_all

expand_all

collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]

Visual C++

DPSF API Documentation
MagnetPlane Constructor (Vector3, Vector3, DefaultParticleSystemMagnet
.
.
::
..MagnetModes, DefaultParticleSystemMagnet..::..DistanceFunctions, Single, Single, Single, Int32)
gradient

Explicit Constructor

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public MagnetPlane(

 Vector3 sPositionOnPlane,

 Vector3 sNormal,

 DefaultParticleSystemMagnet..::..MagnetModes eMode,

 DefaultParticleSystemMagnet..::..DistanceFunctions eDistanceFunction,

 float fMinDistance,

 float fMaxDistance,

 float fMaxForce,

 int iType

)

Visual Basic

Public Sub New (

 sPositionOnPlane As Vector3,

 sNormal As Vector3,

 eMode As DefaultParticleSystemMagnet..::..MagnetModes,

 eDistanceFunction As DefaultParticleSystemMagnet..::..DistanceFunctions,

 fMinDistance As Single,

 fMaxDistance As Single,

 fMaxForce As Single,

 iType As Integer

)

Visual C++

public:

MagnetPlane(

 Vector3 sPositionOnPlane,

 Vector3 sNormal,

 DefaultParticleSystemMagnet..::..MagnetModes eMode,

 DefaultParticleSystemMagnet..::..DistanceFunctions eDistanceFunction,

 float fMinDistance,

 float fMaxDistance,

 float fMaxForce,

 int iType

)

Parameters

sPositionOnPlane

Type: Vector3

A 3D Position on the Plane Magnet's Plane

sNormal

Type: Vector3

The Normal direction of the Plane (i.e. the up direction away from the plane)

eMode

Type: DPSF..::..DefaultParticleSystemMagnet..::..MagnetModes

The Mode that the Magnet should be in

eDistanceFunction

Type: DPSF..::..DefaultParticleSystemMagnet..::..DistanceFunctions

The Function to use to determine how much a Particle should be affected by the Magnet based on how far away from the Magnet it is

fMinDistance

Type: System..::..Single

The Min Distance that the Magnet should be able to affect Particles at. If the Particle is closer to the Magnet than this distance, the Magnet will not affect the Particle.

fMaxDistance

Type: System..::..Single

The Max Distance that the Magnet should be able to affect Particles at. If the Particle is further away from the Magnet than this distance, the Magnet will not affect the Particle.

fMaxForce

Type: System..::..Single

The Max Force that the Magnet is able to exert on a Particle

iType

Type: System..::..Int32

The Type of Magnet this is. This may be used in conjunction with the "Other" Magnet Mode to distinguish which type of custom user effect the Magnet should have on the Particles.

collapse_allSee Also

MagnetPlane Class

MagnetPlane Members

MagnetPlane Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com