Search the Community
Showing results for tags 'reset'.
-
[SOLVED] Possibility to reset physics = faster version of reload_world
Klimczak.Jan posted a topic in Feedback for UNIGINE team
Hi, I thing that it could be very useful to have option in Editor2 to just reset physic state (with transformations of affected objects) to state from file. It could be very similar to world_reload but it could be a little bit more performance improvement to world_reload because it could do just 2 thinks which I described earlier. Kind regards, Jan -
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