Search found 5 matches
- Sun Nov 17, 2019 4:10 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Is it possible to read the mass of a rigid body?
- Replies: 1
- Views: 2585
Is it possible to read the mass of a rigid body?
This seems like it should be simple, but I don't see any way to do it in the API.
- Wed Jul 03, 2019 6:10 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: btPersistentManifold::getNumContacts always returns zero
- Replies: 3
- Views: 6576
Re: btPersistentManifold::getNumContacts always returns zero
Thank you, I actually ended up solving the problem myself. It turns out the problem was a false assumption I had about the contact manifolds: I thought they would only be created when there were already points of contact, but it turns out those "collisions" are already registered when the ...
- Wed Jul 03, 2019 5:50 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: What's the best way to pin a rigid body to another rigid body?
- Replies: 1
- Views: 2541
What's the best way to pin a rigid body to another rigid body?
I have a simulation where the character model is a capsule rigid body which is moved by applying forces. I want to have another body which represents the hit box for a weapon which moves relative to the character body. I.e. imagine a sword blade which moves along a set path relative to the character...
- Sat Jun 15, 2019 4:36 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: btPersistentManifold::getNumContacts always returns zero
- Replies: 3
- Views: 6576
btPersistentManifold::getNumContacts always returns zero
I want to get access to the contact point details for a collision. The problem is, whenever I try to get the number of contacts from a manifold, via btPersistentManifold::getNumContacts, the result is always zero. Here's how I'm getting the contacts: // these methods are part of a C wrapper so I can...
- Tue Apr 02, 2019 9:17 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Question about pooled allocations
- Replies: 0
- Views: 4046
Question about pooled allocations
So I am integrating Bullet into a data-driven ECS design, and basically everything in the engine is batch-allocated. I would like to also allocate all of my rigid bodies at once also. In all of the examples I can find, btRigidBody is allocates one-at-a-time using `new`, however I can see that there ...