gary Posted September 5, 2018 Share Posted September 5, 2018 How do I run my world and view through the player persecutor camera? Cheers, G Link to comment
silent Posted September 6, 2018 Share Posted September 6, 2018 Hi Gary, You need to modify your project's code to able to do this. In the default world script (data/<project>/<project_name>.cpp/usc) there is an example how to set the game camera. You need to change this logic a bit. For example, something like that: #include <core/unigine.h> PlayerPersecutor player; /* */ int init() { player = node_cast(engine.editor.getNodeByName("My_Player_Persecutor")); engine.game.setPlayer(player); return 1; } 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
Recommended Posts