From b684116b60ed4b40b2b1576aa39e7db06534276d Mon Sep 17 00:00:00 2001 From: oisincar Date: Sun, 12 Aug 2018 18:47:21 +0100 Subject: [PATCH] Expose PhysicalBone::get_bone_id() to c#/gdscript --- scene/3d/physics_body.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 84a0fb9b1df..e53ccb4cf45 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -2042,6 +2042,8 @@ void PhysicalBone::_bind_methods() { ClassDB::bind_method(D_METHOD("is_simulating_physics"), &PhysicalBone::is_simulating_physics); + ClassDB::bind_method(D_METHOD("get_bone_id"), &PhysicalBone::get_bone_id); + ClassDB::bind_method(D_METHOD("set_mass", "mass"), &PhysicalBone::set_mass); ClassDB::bind_method(D_METHOD("get_mass"), &PhysicalBone::get_mass);