xiangaodielian / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

oscillation happened when use vehicle #749

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.change the vehicle demo to use boxshape as groudobject
2.change the boxshape size to (512,3,512)
3.the vehicle will oscillation  

What is the expected output? What do you see instead?
oscillation is happened in the vehicle,but never stop

What version of the product are you using? On what operating system?
2.80

Please provide any additional information below.
change the line to:
oldcode:btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50));
newcode:btCollisionShape* groundShape = new btBoxShape(btVector3(512,3,512));
use the boxshape as the groundshape,not use btBvhTriangleMeshShape or 
btHeightfieldTerrainShape.

Original issue reported on code.google.com by chineseo...@gmail.com on 12 Oct 2013 at 8:13

GoogleCodeExporter commented 9 years ago
It should be fixed/improved in latest trunk. Note that very large collision 
shapes can cause imprecision in ray test and collision detection, so it is 
better to avoid huge boxes.

Original comment by erwin.coumans on 19 Oct 2013 at 4:43

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/bullet/source/detail?r=2686

Original comment by erwin.coumans on 19 Oct 2013 at 4:43

GoogleCodeExporter commented 9 years ago
3Q, I have guess the same reason.when i use triangle mesh shape replace box 
shape ,it will be right. 

Original comment by chineseo...@gmail.com on 20 Oct 2013 at 3:19

GoogleCodeExporter commented 9 years ago
Yes, as long as the triangles are not 512x512 units. Please check latest trunk, 
results should be better.

Original comment by erwin.coumans on 20 Oct 2013 at 3:24