# Physics Simulation Forum

 All times are UTC

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Twitching compound shape on terrainPosted: Wed Nov 07, 2012 5:32 pm

Joined: Wed Apr 28, 2010 3:09 pm
Posts: 14
I have complex shapes (meshes in a compound shape) that sit on terrain (btHeightFieldTerrainShape). My problem is that, if the shape sits on the ground in multiple places, the shape will twitch and jiggle and never deactivate.

Think of a four legged chair. The problem seems to be that gravity is pressing the shape down and the penetration recovery code is pushing each of the chair legs up. But since the chair is asymmetrical, the penetration recovery force applied upward on each leg is uneven. Thus the chair jiggles as each leg penetrates and recovers independently.

Question for the forum: how to fix this? I've tried damping, changing mass of the shape, and various other object parameters. Since I want to move the shape by applying forces to it, I cannot just zero out inertia and/or angular factors.

How is this sort of thing usually solved?

-- mb

Top

 Post subject: Re: Twitching compound shape on terrainPosted: Wed Nov 07, 2012 6:11 pm

Joined: Thu Oct 04, 2012 1:58 pm
Posts: 15
Have you tried scaling the shape dimensions, gravity, etc. by a factor of say, 10 or 100? This can sometimes help with problems such as these. See the wiki page http://bulletphysics.org/mediawiki-1.5. ... _The_World, don't forget the note in the forum post linked at the bottom of that page about scaling inertia by X^2.

Top

 Post subject: Re: Twitching compound shape on terrainPosted: Wed Nov 07, 2012 11:55 pm

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3860
Location: California, USA
The first thing is to reproduce the problem by modifying one of the Bullet demos. Sometimes it works by serializing your world into a .bullet file, zip and attach it to a topic, but heightfield shapes are not serialized yet I think.

Once it is reported, someone can check it out and either give advise or fix the Bullet code.
Thanks a lot!
Erwin

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 3 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: Alemarius Nexus, Bing [Bot], Exabot [Bot], Google [Bot] and 5 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ BULLET PHYSICS LIBRARY USERS    General Bullet Physics Support and Feedback    Release Announcements    Applications, Games, Demos or Movies using Bullet PHYSICS AUTHORING TOOLS, SERIALIZATION AND STANDARDS    Physics authoring tools, serialization, standards and related topics RESEARCH AND DEVELOPMENT IN COLLISION DETECTION & PHYSICS. Don't post Bullet support questions here!    Research and development discussion about Collision Detection and Physics Simulation    Links, Papers, Libraries, Demos, Movies, Comparisons       Non-technical forum and license/patent discussion    Career Opportunities