C# 클래스 MBParticle, Pharos

THE Particle class. This is what it's all about!
파일 보기 프로젝트 열기: rstaewen/Pharos 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AbsVelocity Vector3
Acceleration float
AffectedByZones List
Age float
AgePercent float
AngularRotation float
Color Color
Force Vector3
Friction float
Heading Vector3
ImageFrameIndex int
Lifetime float
Mass float
Orientation float
Parent MBEmitter
Position Vector3
Rotation Vector3
Scale Vector3
UserData object[]
Velocity Vector3
mbColor Color

공개 메소드들

메소드 설명
Die ( ) : void

Let this particle die immediately

HasUserData ( int slotID ) : bool

Checks if a particle has a certain user data slot

HasUserDataValue ( int slotID ) : bool

Checks if a particle has a certain user data slot filled with data

MBParticle ( ) : System.Collections.Generic
Reset ( ) : void
ToObject ( ) : MBParticleObject

Create an Object-Proxy holding this particle

메소드 상세

Die() 공개 메소드

Let this particle die immediately
public Die ( ) : void
리턴 void

HasUserData() 공개 메소드

Checks if a particle has a certain user data slot
public HasUserData ( int slotID ) : bool
slotID int the slot id obtained by MBEmitter.GetParticleUserDataID
리턴 bool

HasUserDataValue() 공개 메소드

Checks if a particle has a certain user data slot filled with data
public HasUserDataValue ( int slotID ) : bool
slotID int the slot id obtained by MBEmitter.GetParticleUserDataID
리턴 bool

MBParticle() 공개 메소드

public MBParticle ( ) : System.Collections.Generic
리턴 System.Collections.Generic

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

ToObject() 공개 메소드

Create an Object-Proxy holding this particle
public ToObject ( ) : MBParticleObject
리턴 MBParticleObject

프로퍼티 상세

AbsVelocity 공개적으로 프로퍼티

Unlike Velocity (which is set by the user), this is the total velocity taking forces, rotation etc.. into account. This will be set by the engine.
This is useful for parameters that rely on the actual speed/direction of a particle
public Vector3 AbsVelocity
리턴 Vector3

Acceleration 공개적으로 프로퍼티

Acceleration in direction of heading in Units per Second
public float Acceleration
리턴 float

AffectedByZones 공개적으로 프로퍼티

List of zones that this particle is inside
public List AffectedByZones
리턴 List

Age 공개적으로 프로퍼티

Age in seconds
This will be set by the emitter before any parameters are called
public float Age
리턴 float

AgePercent 공개적으로 프로퍼티

Age in percent (0..1)
This will be set by the emitter before any parameters are called
public float AgePercent
리턴 float

AngularRotation 공개적으로 프로퍼티

Internal field! Used by Orientation parameter
Used by Orientation parameter
public float AngularRotation
리턴 float

Color 공개적으로 프로퍼티

Current color
public Color Color
리턴 Color

Force 공개적으로 프로퍼티

Cumulated forces like Gravity, Forcefields etc...
public Vector3 Force
리턴 Vector3

Friction 공개적으로 프로퍼티

Friction is applied to the resulting force for dampening
public float Friction
리턴 float

Heading 공개적으로 프로퍼티

Normalized acceleration vector
public Vector3 Heading
리턴 Vector3

ImageFrameIndex 공개적으로 프로퍼티

The current MBEmitter.FramesUV index a.k.a. the shown texture frame
public int ImageFrameIndex
리턴 int

Lifetime 공개적으로 프로퍼티

Lifetime in seconds
public float Lifetime
리턴 float

Mass 공개적으로 프로퍼티

Mass
public float Mass
리턴 float

Orientation 공개적으로 프로퍼티

Image Orientation
public float Orientation
리턴 float

Parent 공개적으로 프로퍼티

Gets the emitter this particle belongs to
public MBEmitter Parent
리턴 MBEmitter

Position 공개적으로 프로퍼티

Position in ParticleSystem's space
public Vector3 Position
리턴 Vector3

Rotation 공개적으로 프로퍼티

Rotation around emitter transform
public Vector3 Rotation
리턴 Vector3

Scale 공개적으로 프로퍼티

Scale in world units
public Vector3 Scale
리턴 Vector3

UserData 공개적으로 프로퍼티

User data array
This array is used by parameters that need to store extra data. \sa \ref particleuserdata
public object[] UserData
리턴 object[]

Velocity 공개적으로 프로퍼티

Velocity in Units per Second
public Vector3 Velocity
리턴 Vector3

mbColor 공개적으로 프로퍼티

Internal Field! Color storage used for fades and animations
public Color mbColor
리턴 Color