343344345346347348349350351352353
switch(i) { case 0: s.collisionalgorithm = new SimpleCollision(); break; case 1: s.collisionalgorithm = new VectorTransformation(); break; case 2: s.collisionalgorithm = new MatrixTransformation(); break; }