/** * Rotate all particles, and movement directions(permanently) in the system around upVec by angle * amount * * @param angle Radian angle * @param upVec Normalised up vector to use as the rotation axis */ public void rotate(double angle, E3DVector3F upVec) { orientation.rotate(angle, upVec); E3DParticle particle = null; for (int i = 0; i < particleList.size(); i++) { particle = (E3DParticle) particleList.get(i); particle.rotateMovementDirection(angle, upVec, true); } }