Jump to content

setfov() in appwall


photo

Recommended Posts

setfov() not work in plugin appwall

I followed the code find the camera is copy to itself

Is that mean setfov() can not use in this plugin ?

and how can i setfov() in extern plugins ?

 

Camera *Camera::copy(Camera *camera) const
{
    // if we'll try to copy camera to itself, setFov() will invoke update_projection() and original projection matrix will be lost
    if (camera == this)
        return camera;

 

and i found this

Link to comment
10 minutes ago, morbid said:

Hello @shichao,

You can change FoV directly from the main menu or like this:


#include<UnigineInterpreter.h>
#include<UnigineEngine.h>

Engine::get()->runSystemFuction(Variable("wallSetFov"), Variable(60.0f));

menu.png

Thanks.

Thanks.

Link to comment
×
×
  • Create New...