ragingclaw Posted December 12, 2016 Share Posted December 12, 2016 Hey there party people. I have 5 meshes that are using physics (cloth like sims). I am wondering if there is a way to disable or pause the physics if the mesh does not meet specific criteria at a given point. So it would be possible to turn physics on or off depending on some condition. Simple test, can you have a button that enables and disables physics on a per object basis? Lets say, mesh A is within x distance of the camera, so it can be on, but meshes b-e should be off. If mesh A leaves x distance, it turns off. If mesh B becomes within x distance, it turns on. Make sense? @RaananW you have experience here, what are your thoughts? Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 12, 2016 Share Posted December 12, 2016 Hi! Long time. Are these the meshes that I know well? If that's the case, you could stop the before render loops when not viewing the meshes. Performance will be much better. Quote Link to comment Share on other sites More sharing options...
ragingclaw Posted December 12, 2016 Author Share Posted December 12, 2016 yup, they are the ones. all on together crash the scene so I want to just have them on an off if the camera is right there on them. Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 12, 2016 Share Posted December 12, 2016 Originally they were initialized to work like that. The problem was, and still is that when not zoomed in they can still be viewed. We had this discussion a while back ☺ Try also to reduce the quality of the cloth. This is an exponential factor. Will help performance, especially on mobile. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.