philip.atha Posted July 1, 2015 Share Posted July 1, 2015 I'm performing a simple mouse intersection test to create a new dummy node and whenever I do, my editor cam is reset somewhere back to 0,0,0. Any idea why this is? int ret[1]; vec3 p0, p1; Unigine::getPlayerMouseDirection(p0,p1); Object obj = engine.world.getIntersection(p0, p1, ~0, ret); NodeDummy pt = new NodeDummy(); pt.setName("TESTNODE"); pt.setWorldPosition(ret[0]); engine.editor.addNode(pt); Philip Link to comment
silent Posted July 2, 2015 Share Posted July 2, 2015 Hi Philip, Could you please specify the SDK version that you are currently using? We recently fixed similar behavior (in Unigine 2.0 beta, if I remember correctly). 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
silent Posted July 3, 2015 Share Posted July 3, 2015 Hi Philip, You can try to apply a patch from this thread: https://developer.unigine.com/forum/topic/2783-solved-add-editor-cause-viewport-change/or upgrade to the latest Unigine 2.0 RC to fix this issue. 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