Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int licznik = 0;
- auto pos = cubeMatrix.getTrans();
- cubeMatrix *= osg::Matrix::translate(-pos);
- if (licznik<20) {
- cubeMatrix *= osg::Matrix::scale(1.01,1.01,1.01);
- cubeMatrix *= osg::Matrix::translate(pos);
- licznik++;
- } else if (licznik >=20) {
- cubeMatrix *= osg::Matrix::scale(0.99,0.99,0.99);
- cubeMatrix *= osg::Matrix::translate(pos);
- licznik++;
- }
- if (licznik == 40) {
- licznik = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement