setRotation/setPosition from center

This commit is contained in:
Nick Fisher
2022-08-25 19:01:04 +10:00
parent 383aad8a21
commit d78f70ac50
6 changed files with 51 additions and 6 deletions

View File

@@ -597,4 +597,14 @@ void FilamentViewer::updateViewportAndCameraProjection(
contentScaleFactor);
}
void FilamentViewer::setCameraPosition(float x, float y, float z) {
Camera& cam =_view->getCamera();
auto &tm = _engine->getTransformManager();
// tm.setTransform(tm.getInstance(_asset->getRoot()), math::mat4f::translation(math::float3(x,y,z)) * _cameraRotation);
}
void FilamentViewer::setCameraRotation(float rads, float x, float y, float z) {
Camera& cam =_view->getCamera();
}
} // namespace polyvox