Search found 7 matches

by radubolovan
Wed Jan 15, 2014 7:59 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape problem?
Replies: 6
Views: 11480

Re: btCompoundShape problem?

Looks like if I multiply colObj->getWorldTransform() with compoundshape->getChildTransform(j), the compound object (children) is falling down as expected. So the problem was in my draw function indeed. However, after the compound object is hitting the ground crazy stuff is going on. I wish I could m...
by radubolovan
Tue Dec 17, 2013 4:14 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape problem?
Replies: 6
Views: 11480

Re: btCompoundShape problem?

I added the bodies(btRigidBody) to a a list and this is fine for the compound object:

btVector3 pos = m_bodies->getCenterOfMassPosition();

So only children of the compound shape don't update properly ...
by radubolovan
Tue Dec 17, 2013 12:09 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape problem?
Replies: 6
Views: 11480

Re: btCompoundShape problem?

Thanks for your reply. From the traces I see that getChildTransform() is not local: child position: (1 5 0) child position: (0 5 0) child position: (1 5 0) child position: (0 5 0) child position: (1 5 0) child position: (0 5 0) child position: (1 5 0) child position: (0 5 0) child position: (1 5 0) ...
by radubolovan
Fri Dec 13, 2013 2:40 am
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape problem?
Replies: 6
Views: 11480

btCompoundShape problem?

Hello, I am trying to add some btCompoundShape to my app and looks like it doesn't work. I made a siple test, please see the code and screenshot below: --> Setup the world: m_broadphase = snew btDbvtBroadphase(); m_collision_configuration = snew btDefaultCollisionConfiguration(); m_dispatcher = snew...
by radubolovan
Wed Mar 13, 2013 7:31 pm
Forum: General Bullet Physics Support and Feedback
Topic: btSphereShape friction
Replies: 2
Views: 2948

Re: btSphereShape friction

Thank you Adriano for your reply.

I was solving this following RollingFrictionDemo sample though, using setFriction & setRollingFriction to btRigidBody objects. :)
by radubolovan
Wed Mar 13, 2013 12:49 am
Forum: General Bullet Physics Support and Feedback
Topic: btSphereShape friction
Replies: 2
Views: 2948

btSphereShape friction

Hello. I was making a huge btRigidBody that uses btBoxShape as ground and I have a cannon which fires spherical (using btSphereShape) bodies. Everything works fine, except after cannon balls hit the ground, they don't stop as expected (after awhile). As they don't use friction with the ground at all...
by radubolovan
Thu Jan 08, 2009 10:25 am
Forum: General Bullet Physics Support and Feedback
Topic: Freezing a scene
Replies: 7
Views: 5089

Re: Freezing a scene

It is possible to freeze/unfreeze only one object?
I can set mass to 0 to freeze it then when I want to unfreeze it put the mass back ... but I don't like the ideea verry much!
Is there any other way to do this?

Thank you!