| 202 | } |
| 203 | |
| 204 | void Particle::collide(Vec2F const& collisionPosition) { |
| 205 | position = collisionPosition; |
| 206 | approach = Vec2F(); |
| 207 | velocity = finalVelocity = Vec2F(); |
| 208 | destroy(true); |
| 209 | } |
| 210 | |
| 211 | void Particle::destroy(bool withDestruction) { |
| 212 | if (withDestruction) { |