Search found 9 matches

by justjayel
Thu Sep 16, 2021 2:34 pm
Forum: General Bullet Physics Support and Feedback
Topic: Rigid body with child sensors
Replies: 5
Views: 185

Re: Rigid body with child sensors

Fixed the broken ghost object; my issue was due to:

Code: Select all

this->dynamicsWorld->getSimulationIslandManager()->setSplitIslands(false);
by justjayel
Wed Sep 15, 2021 11:49 pm
Forum: General Bullet Physics Support and Feedback
Topic: Rigid body with child sensors
Replies: 5
Views: 185

Re: Rigid body with child sensors

This is what I got but the rigid body is moving up when it starts off at the same position as the ghost object. dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher, overlappingPairCache, solver, collisionConfiguration); dynamicsWorld ->getBroadphase()->getOverlappingPairCache()->setInternalGhostP...
by justjayel
Wed Sep 15, 2021 3:19 pm
Forum: General Bullet Physics Support and Feedback
Topic: Rigid body with child sensors
Replies: 5
Views: 185

Re: Rigid body with child sensors

Thanks for the reply. I have been looking at creating a btGhostObject or btPairCachingGhostObject, but other rigid bodies seem to collide with them unless I set the below; is that correct? dynamicWorld->addCollisionObject(groundSensor, btBroadphaseProxy::SensorTrigger, btBroadphaseProxy::StaticFilte...
by justjayel
Tue Sep 14, 2021 11:51 pm
Forum: General Bullet Physics Support and Feedback
Topic: Rigid body with child sensors
Replies: 5
Views: 185

Rigid body with child sensors

Hiya I am curious what is the best way to create a rigid body linked with a sensor object such as a ghost object? I want the sensor object to move with the parent rigid body and detect collisions. I don't think btCompoubdShape is correct since I believe that only affects the shape of the rigid body....
by justjayel
Sat Sep 11, 2021 3:20 pm
Forum: General Bullet Physics Support and Feedback
Topic: Object falls a third of its height through the ground
Replies: 9
Views: 472

Re: Object falls a third of its height through the ground

If you're trying to make a tall think character always stand up maybe you should use the "zero inverse inertia tensor diagonal" trick. This would allow you to use whatever friction you want. In other words, if your character should only ever rotate about its local vertical Y-axis, then yo...
by justjayel
Wed Sep 01, 2021 2:38 pm
Forum: General Bullet Physics Support and Feedback
Topic: Object falls a third of its height through the ground
Replies: 9
Views: 472

Re: Object falls a third of its height through the ground

Hi drleviathan,

Seems you were right, the setFriction() method worked! Stops my character object from sinking. Thanks!!

The gradual incremental velocity I don't think helped, but its great for simulating a bit of realism, I will definitely look into using it!

Thanks again!
by justjayel
Sun Aug 29, 2021 11:47 pm
Forum: General Bullet Physics Support and Feedback
Topic: Object falls a third of its height through the ground
Replies: 9
Views: 472

Re: Object falls a third of its height through the ground

Hi drleviathan, Can substep_period and blend_timescale be any static values within your description? I'll try this a bit later when I have more time. I quickly checked my issue again on the HelloWorld demo and it seems like the issue is somewhat related to the ratio of the collision shape; seems lik...
by justjayel
Sun Aug 29, 2021 12:11 pm
Forum: General Bullet Physics Support and Feedback
Topic: Object falls a third of its height through the ground
Replies: 9
Views: 472

Re: Object falls a third of its height through the ground

I've tried setting the margin (at 0.05f and higher) after creating the collision shape and before adding it into the btDiscreteDynamicsWorld and it doesn't work. btCollisionShape* colliderShape = new btBoxShape(btVector3(inputs[0], inputs[1], inputs[2])); colliderShape->setMargin(0.5f); btRigidBody*...
by justjayel
Sat Aug 28, 2021 4:27 pm
Forum: General Bullet Physics Support and Feedback
Topic: Object falls a third of its height through the ground
Replies: 9
Views: 472

Object falls a third of its height through the ground

Hiya, I have set up a very simple demo using Bullet where an object moves along the ground using linear velocity which is constantly set to the same value over 200 frames and then the object falls through the ground but only up to a third of its height. E.g.: If I have a RidgidBody with a box collis...