-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
easyenhancementobstacleNew obstacle or enhancement of obstaclesNew obstacle or enhancement of obstacles
Description
Currently, to define a new collision rule, e.g. random or "pinball" dynamics, you have to duplicate each wall type and define collision functions with each new type. This leads to a significant amount of code duplication (e.g. RandomWall and RandomDisk objects).
Instead, the suggestion is to include the collision function (specular, random, pinball, etc.) as a parametrised field of each wall object. This should reduce code repetition, with no (?) loss in performance.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
easyenhancementobstacleNew obstacle or enhancement of obstaclesNew obstacle or enhancement of obstacles