C# 클래스 UHSampleGame.ProjectileManagment.Projectile

This class demonstrates how to combine several different particle systems to build up a more sophisticated composite effect. It implements a rocket projectile, which arcs up into the sky using a ParticleEmitter to leave a steady stream of trail particles behind it. After a while it explodes, creating a sudden burst of explosion and smoke particles.
파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project

공개 프로퍼티들

프로퍼티 타입 설명
Active bool
Position Vector3
velocity Vector3

공개 메소드들

메소드 설명
Projectile ( ParticleSystem explosionParticles, ParticleSystem explosionSmokeParticles, ParticleSystem projectileTrailParticles ) : System

Constructs a new projectile.

SetPositionAndVelocity ( Vector3 position, Vector3 velocity ) : void
Update ( float elapsedTime ) : bool

Updates the projectile.

메소드 상세

Projectile() 공개 메소드

Constructs a new projectile.
public Projectile ( ParticleSystem explosionParticles, ParticleSystem explosionSmokeParticles, ParticleSystem projectileTrailParticles ) : System
explosionParticles ParticleSystem
explosionSmokeParticles ParticleSystem
projectileTrailParticles ParticleSystem
리턴 System

SetPositionAndVelocity() 공개 메소드

public SetPositionAndVelocity ( Vector3 position, Vector3 velocity ) : void
position Vector3
velocity Vector3
리턴 void

Update() 공개 메소드

Updates the projectile.
public Update ( float elapsedTime ) : bool
elapsedTime float
리턴 bool

프로퍼티 상세

Active 공개적으로 프로퍼티

public bool Active
리턴 bool

Position 공개적으로 프로퍼티

public Vector3 Position
리턴 Vector3

velocity 공개적으로 프로퍼티

public Vector3 velocity
리턴 Vector3