| 93 | void Particle3DTestDemo::onTouchesBegan(const std::vector<Touch*>& touches, ax::Event* event) {} |
| 94 | |
| 95 | void Particle3DTestDemo::onTouchesMoved(const std::vector<Touch*>& touches, ax::Event* event) |
| 96 | { |
| 97 | if (touches.size()) |
| 98 | { |
| 99 | auto touch = touches[0]; |
| 100 | auto delta = touch->getDelta(); |
| 101 | |
| 102 | _angle -= AX_DEGREES_TO_RADIANS(delta.x); |
| 103 | _camera->setPosition3D(Vec3(100.0f * sinf(_angle), 0.0f, 100.0f * cosf(_angle))); |
| 104 | _camera->lookAt(Vec3(0.0f, 0.0f, 0.0f), Vec3(0.0f, 1.0f, 0.0f)); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | void Particle3DTestDemo::onTouchesEnded(const std::vector<Touch*>& touches, ax::Event* event) {} |
| 109 |
nothing calls this directly
no test coverage detected