Advertisement Jump to content
Sign in to follow this  
kulik

SImple rigidbody physics - stacking

This topic is 4972 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am developing a little simple rigidbody physics engine just for fun and I ran into a problem. It runs rather fast when I add small amount of objects (I use just while and for loops in my code and I check if rigidbody was simulated or not), but when I create a pyramid (or whatever where bodies are on each other) it runs slow, because onto every object gravity and reaction force is added. Thus a little move of any object in pyramid will result in huge iteration of all objects in pyramid. I see some engines (like Tomakak) uses a little trick - stacking. I would like to implement that too, but I can't find any suitable tutorial for it. Can somebody help me to discover how does this work and how to implement it?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!