Skip to content

Commit

Permalink
Tweak the Bullet RigidBody kinematic trimesh warning message
Browse files Browse the repository at this point in the history
This makes it clearer that primitive or convex shapes must be
used instead.
  • Loading branch information
Calinou committed Feb 10, 2022
1 parent 0c7c640 commit e793466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bullet/rigid_body_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void RigidBodyBullet::KinematicUtilities::copyAllOwnerShapes() {
shapes.write[i].shape = static_cast<btConvexShape *>(shape_wrapper->shape->create_bt_shape(owner_scale * shape_wrapper->scale, safe_margin));
} break;
default:
WARN_PRINT("This shape is not supported to be kinematic!");
WARN_PRINT("RigidBody in 3D only supports primitive shapes or convex polygon shapes. Concave (trimesh) polygon shapes are not supported.");
shapes.write[i].shape = nullptr;
}
}
Expand Down

0 comments on commit e793466

Please sign in to comment.