Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jun 05, 2012 9:47 am 
Offline

Joined: Sat Jan 10, 2009 11:10 am
Posts: 5
Hi!

I have a question about the normal returned by convexSweepTest, have searched in the forum and didn't found the answer.
I'm trying to implement a character controller like the one used in quake3 (sweep the player collision against the wall, clip the velocity, etc).

But it seems to me that when I sweep a capsule, the normals return by convexSweepTest are not the normals used by the triangles in the tri mesh : for example if my mesh only has triangles with (0, 1, 0), (1, 0, 0) and (0, 0, 1) normals, sometimes ClosestConvexResultCallback normals can be something different. I think it's an issue when colliding with an edge.
Using a cylinder gives better result (and maybe I will stick to this).

So what are the normals returned by convexSweepTest when casting against a trimesh? or boxes? Is there a difference whith triangle edges?

Thank you!

Pilo.


Top
 Profile  
 
PostPosted: Tue Jun 05, 2012 10:03 am 
Offline

Joined: Fri Jan 28, 2011 9:03 pm
Posts: 14
cylinder/capsule for humanoid character is better choice!
it seems like convexSweepTest() returns strange result for edge case.
in my practice convexSweepTest ( only btCylinderShapeZ vs. btBvhTriangleMeshShape ) returns fine results.


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

All times are UTC


Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 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