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.
Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project

Méthodes publiques

Свойство Type Description
Active bool
Position Vector3
velocity Vector3

Méthodes publiques

Méthode 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 méthode

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

SetPositionAndVelocity() public méthode

public SetPositionAndVelocity ( Vector3 position, Vector3 velocity ) : void
position Vector3
velocity Vector3
Résultat void

Update() public méthode

Updates the projectile.
public Update ( float elapsedTime ) : bool
elapsedTime float
Résultat bool

Property Details

Active public_oe property

public bool Active
Résultat bool

Position public_oe property

public Vector3 Position
Résultat Vector3

velocity public_oe property

public Vector3 velocity
Résultat Vector3