Peter Posted February 28, 2014 Share Posted February 28, 2014 How do I tell the engine to stop rendering the camera, but keep updating the controls? Link to comment
silent Posted February 28, 2014 Share Posted February 28, 2014 Hi, What do you mean by 'stop rendering the camera'? Could you please describe your use case in more details? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Peter Posted March 7, 2014 Author Share Posted March 7, 2014 If I don't use engine.game.setPlayer to set the main camera/player, then the players controls are not updated. I tried using player.updateControls instead, but it does not work if the engine's player is not set. I display some information to a WidgetSprite that is based on the player's position. If I don't want to show the camera, but still move the player object on input and update the widgetsprite, how would I do this? Link to comment
silent Posted March 12, 2014 Share Posted March 12, 2014 Hi Peter, You can try to manually update your controls via setState() / clearState() functions from Controls Class in world update. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts