C# 클래스 Nez.Verlet.Particle

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
collidesWithColliders bool
lastPosition Microsoft.Xna.Framework.Vector2
mass float
position Microsoft.Xna.Framework.Vector2
radius float

공개 메소드들

메소드 설명
Particle ( Vector2 position ) : Microsoft.Xna.Framework
Particle ( float x, float y ) : Microsoft.Xna.Framework
applyForce ( Vector2 force ) : void

applies a force taking mass into account to the Particle

pin ( ) : Particle

pins the Particle to its current position

pinTo ( Vector2 position ) : Particle

pins the particle to the specified position

unpin ( ) : Particle

unpins the particle setting it free like the wind

메소드 상세

Particle() 공개 메소드

public Particle ( Vector2 position ) : Microsoft.Xna.Framework
position Microsoft.Xna.Framework.Vector2
리턴 Microsoft.Xna.Framework

Particle() 공개 메소드

public Particle ( float x, float y ) : Microsoft.Xna.Framework
x float
y float
리턴 Microsoft.Xna.Framework

applyForce() 공개 메소드

applies a force taking mass into account to the Particle
public applyForce ( Vector2 force ) : void
force Microsoft.Xna.Framework.Vector2 Force.
리턴 void

pin() 공개 메소드

pins the Particle to its current position
public pin ( ) : Particle
리턴 Particle

pinTo() 공개 메소드

pins the particle to the specified position
public pinTo ( Vector2 position ) : Particle
position Microsoft.Xna.Framework.Vector2 Position.
리턴 Particle

unpin() 공개 메소드

unpins the particle setting it free like the wind
public unpin ( ) : Particle
리턴 Particle

프로퍼티 상세

collidesWithColliders 공개적으로 프로퍼티

if true, the Particle will collide with standard Nez Colliders
public bool collidesWithColliders
리턴 bool

lastPosition 공개적으로 프로퍼티

the position of the Particle prior to its latest move
public Vector2,Microsoft.Xna.Framework lastPosition
리턴 Microsoft.Xna.Framework.Vector2

mass 공개적으로 프로퍼티

the mass of the Particle. Taken into account for all forces and constraints
public float mass
리턴 float

position 공개적으로 프로퍼티

the current position of the Particle
public Vector2,Microsoft.Xna.Framework position
리턴 Microsoft.Xna.Framework.Vector2

radius 공개적으로 프로퍼티

the radius of the Particle
public float radius
리턴 float