cinetec_tech Posted January 28, 2015 Share Posted January 28, 2015 hi . we found a bug in the eidtor_controls.h and a fix blow. the current code will have issue when we update the a dynamic mesh and try to focus the mesh. without the fix, focus will jump to somewhere as the return boundsphere is not right. // WorldBoundSphere bs = object.getWorldBoundSphere(surface); // target_position = bs.getCenter(); // distance = bs.getRadius() * 3.0f; BoundSphere bs = object.getBoundSphere(surface); target_position = object.getWorldTransform()*bs.getCenter(); distance = bs.getRadius() * 3.0f; Link to comment
silent Posted January 29, 2015 Share Posted January 29, 2015 Thanks! This issue is already fixed. Fix will be available in the next SDK update. However, if you can provide us minimal test scene with your dynamic object we can compare behavior between your method and ours. 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