Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bumpy Character Movement
PostPosted: Mon Jul 16, 2012 4:40 pm 
Offline

Joined: Thu Jun 28, 2012 5:06 pm
Posts: 17
Hello,

I wrote a game that uses a btBvhTriangleMeshShape for a blocky volumetric (Minecraft - like) map.
I then made a dynamic character controller that uses a capsule shape.
However, the capsule keeps bouncing off of the floor, as if it is getting stuck on the edges between the triangles in the mesh.

What I find especially strange is that this is occurring with a shape that doesn't have sharp edges (capsule).

Is there any way to avoid this bouncing behavior?

Thank you for any help you can offer!


Top
 Profile  
 
PostPosted: Fri Jul 20, 2012 6:09 pm 
Offline

Joined: Thu Jun 28, 2012 5:06 pm
Posts: 17
Bump


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 4:02 am 
Offline

Joined: Mon Feb 02, 2009 2:15 pm
Posts: 10
I have the same behavior when sliding though large flat walls, the character goes doing small bumps all the way and sometimes stop, like it get stuck and a small change on direction gets its moving again.

Was you able to improbe the bumping?


Top
 Profile  
 
PostPosted: Thu Aug 09, 2012 7:37 pm 
Offline

Joined: Thu Jun 28, 2012 5:06 pm
Posts: 17
Anyone?


Top
 Profile  
 
PostPosted: Sat Aug 11, 2012 1:12 pm 
Offline

Joined: Sun Sep 30, 2007 7:58 am
Posts: 225
Hi,

each triangle in a mesh is treated by bullet like a seperate entity which causes such problems.
You can use the 'btTriangleInfoMap' to generate connectivity information and remove internal triangle edges based on certain heuristics. There are a few threads about such problems here in the forum.


Top
 Profile  
 
PostPosted: Sat Aug 11, 2012 11:31 pm 
Offline

Joined: Thu Jun 28, 2012 5:06 pm
Posts: 17
Thanks for the response!

I came up with a solution as well. I actually came up with it before I ever posted about this problem, but I somehow messed it up and it didn't work properly until now.

I just did a ray cast to kinematically raise the body off of the ground to keep it from bouncing.

But, I still may look into the mesh type you suggested, since the ray cast is an ugly solution that will only work when the player is on a horizontal surface.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group