1 / 2

20 likes | 173 Vues

Exercises. Create a ChaoticParticle class, which is a Particle, randomly changing its movement (Speed). You are not allowed to edit any existing class. Test the ChaoticParticle through the ParticleSystemMain class

Télécharger la présentation
## Exercises

**An Image/Link below is provided (as is) to download presentation**
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

**Exercises**• Create a ChaoticParticle class, which is a Particle, randomly changing its movement (Speed). You are not allowed to edit any existing class. • Test the ChaoticParticle through the ParticleSystemMain class • Create a ChickenParticle class. The ChickenParticle class moves like a ChaoticParticle, but randomly stops at different positions for several simulation ticks and, for each of those stops, creates (lays) a new ChickenParticle. You are not allowed to edit any existing class. • Test the ChickenParticle class through the ParcticleSystemMain class. 1**Exercises (2)**• Implement a ParticleRepeller class. A ParticleRepeller is a Particle, which pushes other particles away from it (i.e. accelerates them in a direction, opposite of the direction in which the repeller is). The repeller has an effect only on particles within a certain radius (see Euclidean distance) • Test the ParticleRepeller class through the ParticleSystemMain class

More Related