C# Class 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.
Mostrar archivo Open project: holtkampw/UH-Sample-XNA-Project

Public Properties

Property Type Description
Active bool
Position Vector3
velocity Vector3

Public Methods

Method Description
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.

Method Details

Projectile() public method

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

SetPositionAndVelocity() public method

public SetPositionAndVelocity ( Vector3 position, Vector3 velocity ) : void
position Vector3
velocity Vector3
return void

Update() public method

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

Property Details

Active public_oe property

public bool Active
return bool

Position public_oe property

public Vector3 Position
return Vector3

velocity public_oe property

public Vector3 velocity
return Vector3