gothboiclique Posted March 29, 2021 Posted March 29, 2021 Hi, say I have a barrel (just using the built in prefab). I want the object to fall on the ground when it is in the air but I don't want the barrel to fall on its side. How can I prevent rotation of this object from physics? Thanks! Quote
reepblue Posted March 29, 2021 Posted March 29, 2021 You could modify the slider script to apply gravity force on the object at start and once the object collides with the world, you release the joint. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Solution Josh Posted March 30, 2021 Solution Posted March 30, 2021 A slider joint can be used to make the object go straight up and down. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
gothboiclique Posted March 30, 2021 Author Posted March 30, 2021 Both of these appear to be good ideas, I will try to implement them soon! Thank you for your help. Quote
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.