Removed shape margin
This commit is contained in:
parent
f2d07d5aeb
commit
0a0800ebec
@ -285,10 +285,10 @@ void RigidCollisionObjectBullet::on_shapes_changed() {
|
||||
const int size = shapes.size();
|
||||
for (i = 0; i < size; ++i) {
|
||||
shpWrapper = &shapes[i];
|
||||
if (!shpWrapper->bt_shape) {
|
||||
shpWrapper->bt_shape = shpWrapper->shape->create_bt_shape();
|
||||
}
|
||||
if (shpWrapper->active) {
|
||||
if (!shpWrapper->bt_shape) {
|
||||
shpWrapper->bt_shape = shpWrapper->shape->create_bt_shape();
|
||||
}
|
||||
compoundShape->addChildShape(shpWrapper->transform, shpWrapper->bt_shape);
|
||||
} else {
|
||||
compoundShape->addChildShape(shpWrapper->transform, BulletPhysicsServer::get_empty_shape());
|
||||
|
@ -45,6 +45,7 @@ ShapeBullet::~ShapeBullet() {}
|
||||
|
||||
btCollisionShape *ShapeBullet::prepare(btCollisionShape *p_btShape) const {
|
||||
p_btShape->setUserPointer(const_cast<ShapeBullet *>(this));
|
||||
p_btShape->setMargin(0.);
|
||||
return p_btShape;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user