Antoine 1 Share Posted January 13 mpPlayerSpectator->setDirection(direction, Unigine::Math::vec3::UP); mpPlayerSpectator->setViewDirection(direction); I'm having some difficulties understanding the differences between the two functions above. For the first one, is for all nodes. here is the definition you're giving : Quote void setDirection ( ) Updates the direction vector of the node and reorients this node: the specified axis of the node becomes oriented along the specified vector in local coordinates. For example, after running the code below, you will get the X axis of the node pointed along the Y axis in local coordinates. The second one, is only for a playerSpectator: Quote void setViewDirection ( vec3 direction ) Sets a new Player's view direction vector. Can the viewDirection be different from the direction ? And if yes what are those differences ? Link to post
silent 425 Share Posted January 13 Hi Antoine, In case of the PlayerSpectator there is indeed no difference between these two methods. 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 post
Recommended Posts