typedeph Posted January 8, 2016 Share Posted January 8, 2016 If I put my mouse close to any of the edges of the following code: http://jsbin.com/sivaba/edit?html,js,output, the box renders outside the world bounds then corrects itself after a few seconds. Why does this clipping occur and how do I get rid of it? Is it because renders happen before collision resolution? or is this is a asynchronous callback problem? Link to comment Share on other sites More sharing options...
drhayes Posted January 10, 2016 Share Posted January 10, 2016 You could clamp it to the world boundaries yourself: don't let it go below zero on x/y, don't let it get higher than width/height. Link to comment Share on other sites More sharing options...
Recommended Posts