Skip to content

Implement Influencer and Collision detection event #2

@mcgivrer

Description

@mcgivrer

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions