Jump to content

[SOLVED] "run" world through player persecutor camera view


photo

Recommended Posts

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:

Link to comment
  • silent changed the title to [SOLVED] "run" world through player persecutor camera view
×
×
  • Create New...