Jump to content

[SOLVED] Camera management


photo

Recommended Posts

Posted

I am struggling with camera managing from C++ level. I know we can do

PlayerSpectator camera = new PlayerSpectator();
camera.setPosition(vec3(x, y, z));
engine.game.setPlayer(camera);
   

from UnigineScript.

However I do not know how to manage the camera from C++ level.

Questions:

1. How can I create camera from C++? How can I switch cameras?

2. What is the procedure to update camera position and orientation?

 

 

Posted

cough cough...

Not a single clue??

Posted

PlayerDummy interface and Game|Editor::setPlayer() functions will be available in the next SDK update.

×
×
  • Create New...