Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Influencer and Collision detection event #2

Open
mcgivrer opened this issue Mar 30, 2023 · 0 comments
Open

Implement Influencer and Collision detection event #2

mcgivrer opened this issue Mar 30, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@mcgivrer
Copy link
Member

mcgivrer commented Mar 30, 2023

Influencer

Definition

Add new feature in the PhysicEngine to define area on the play area where physic and environment can change the Entity behavior.

Global design approach

In this diagram, we can identify the following requirement:

  • E1: this entity is under the magnet yellow influence only,
  • E2: the second entity is under both influence water and magnet,
  • E3: the 3rd entity is not under influence
  • E4: and the fourth entity is only under the water influencer (blue one).

Proposed design

Influencer design proposal

implementation proposal

class Influencer extends Entity {
  
  //...
}

Impacts

the following impacts has been identified:

Component/Service Description
Influencer create the component Influencer inheriting from the Entity class.
PhysicEngine add Influencer processing, excluding Influencer from Entity processing
Renderer implement a dedicated DrawPlugin<Influencer> only used for display debug purposes
@mcgivrer mcgivrer self-assigned this Mar 30, 2023
@mcgivrer mcgivrer added the documentation Improvements or additions to documentation label Mar 30, 2023
@mcgivrer mcgivrer added this to the EndOfGame milestone Mar 30, 2023
@mcgivrer mcgivrer pinned this issue Mar 30, 2023
@mcgivrer mcgivrer added enhancement New feature or request good first issue Good for newcomers labels Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant