Skip to content

walls and particles collisions #57

@Demezy

Description

@Demezy
  • Implement collision of a wall and particles.
  • add this function to handleVelocity

Possible approach:

  • move point
  • if it crossed the wall, then mirror position of particle with respect to wall
  • change vector of velocity reflecting it with respect to normal to wall

Metadata

Metadata

Labels

No labels
No labels

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions