Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 24, 2009 10:55 am 
Offline

Joined: Tue Mar 24, 2009 10:37 am
Posts: 1
Hi, I'm trying to simulate a coin with a specific diameter and a relatively small height. As collision shape I use the btCylinderShape and I'm having an issue when the coin is about to rest on a plane but still keeps spinning on its border for a very long time on the same position.

I'm pretty new to physics engines and physics in general so I was wondering if there is a way to sort of damp the spinning if the position itself doesn't change anymore? Or is the btCylinderShape not meant to be used for very flat cylinders like coins? Are there suitable alternatives?

Greetings,
dudler


Top
 Profile  
 
PostPosted: Tue Mar 24, 2009 2:05 pm 
Offline

Joined: Fri Dec 19, 2008 2:51 pm
Posts: 32
Try increasing the angular damping factor, which is initially set to zero.
set it in the btRigidBodyConstructionInfo or use btRigidBody::setDamping(btScalar lin_damping, btScalar ang_damping)


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: No registered users and 0 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:  
cron
Powered by phpBB® Forum Software © phpBB Group