bertha-kelley
Uploaded by
2 SLIDES
159 VUES
20LIKES

Implementing Chaotic and Chicken Particle Classes with a Particle Repeller

DESCRIPTION

This project involves creating a `ChaoticParticle` class that changes its movement speed randomly, and a `ChickenParticle` class that behaves like a `ChaoticParticle` but randomly stops to lay new particles. Both classes must be tested using the `ParticleSystemMain` class. Additionally, implement a `ParticleRepeller` class that pushes other particles away from it within a specified radius, using Euclidean distance for calculations. Ensure no existing classes are modified during implementation.

1 / 2

Download Presentation
Télécharger la présentation

Implementing Chaotic and Chicken Particle Classes with a Particle Repeller

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

Presentation Transcript


  1. 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

  2. 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
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer