Advertisement
kanciastopantalones

Untitled

Mar 16th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. static int licznik = 0;
  2. auto pos = cubeMatrix.getTrans();
  3. cubeMatrix *= osg::Matrix::translate(-pos);
  4. if (licznik<20) {
  5. cubeMatrix *= osg::Matrix::scale(1.01,1.01,1.01);
  6. cubeMatrix *= osg::Matrix::translate(pos);
  7. licznik++;
  8. } else if (licznik >=20) {
  9. cubeMatrix *= osg::Matrix::scale(0.99,0.99,0.99);
  10. cubeMatrix *= osg::Matrix::translate(pos);
  11. licznik++;
  12. }
  13. if (licznik == 40) {
  14. licznik = 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement