@@ -1013,21 +1013,24 @@ void RigidBody2D::_bind_methods() {
10131013 GDVIRTUAL_BIND (_integrate_forces, " state" );
10141014
10151015 ADD_PROPERTY (PropertyInfo (Variant::FLOAT , " mass" , PROPERTY_HINT_RANGE , " 0.01,1000,0.01,or_greater,exp,suffix:kg" ), " set_mass" , " get_mass" );
1016- ADD_PROPERTY (PropertyInfo (Variant::FLOAT , " inertia" , PROPERTY_HINT_RANGE , U" 0,1000,0.01,or_greater,exp,suffix:kg\u22C5 px\u00B2 " ), " set_inertia" , " get_inertia" );
1016+ ADD_PROPERTY (PropertyInfo (Variant::OBJECT , " physics_material_override" , PROPERTY_HINT_RESOURCE_TYPE , " PhysicsMaterial" ), " set_physics_material_override" , " get_physics_material_override" );
1017+ ADD_PROPERTY (PropertyInfo (Variant::FLOAT , " gravity_scale" , PROPERTY_HINT_RANGE , " -128,128,0.01" ), " set_gravity_scale" , " get_gravity_scale" );
1018+ ADD_GROUP (" Mass Distribution" , " " );
10171019 ADD_PROPERTY (PropertyInfo (Variant::INT , " center_of_mass_mode" , PROPERTY_HINT_ENUM , " Auto,Custom" , PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED ), " set_center_of_mass_mode" , " get_center_of_mass_mode" );
10181020 ADD_PROPERTY (PropertyInfo (Variant::VECTOR2 , " center_of_mass" , PROPERTY_HINT_RANGE , " -10,10,0.01,or_less,or_greater,suffix:px" ), " set_center_of_mass" , " get_center_of_mass" );
10191021 ADD_LINKED_PROPERTY (" center_of_mass_mode" , " center_of_mass" );
1020- ADD_PROPERTY (PropertyInfo (Variant::OBJECT , " physics_material_override" , PROPERTY_HINT_RESOURCE_TYPE , " PhysicsMaterial" ), " set_physics_material_override" , " get_physics_material_override" );
1021- ADD_PROPERTY (PropertyInfo (Variant::FLOAT , " gravity_scale" , PROPERTY_HINT_RANGE , " -128,128,0.01" ), " set_gravity_scale" , " get_gravity_scale" );
1022- ADD_PROPERTY (PropertyInfo (Variant::BOOL , " custom_integrator" ), " set_use_custom_integrator" , " is_using_custom_integrator" );
1023- ADD_PROPERTY (PropertyInfo (Variant::INT , " continuous_cd" , PROPERTY_HINT_ENUM , " Disabled,Cast Ray,Cast Shape" ), " set_continuous_collision_detection_mode" , " get_continuous_collision_detection_mode" );
1024- ADD_PROPERTY (PropertyInfo (Variant::INT , " max_contacts_reported" , PROPERTY_HINT_RANGE , " 0,64,1,or_greater" ), " set_max_contacts_reported" , " get_max_contacts_reported" );
1025- ADD_PROPERTY (PropertyInfo (Variant::BOOL , " contact_monitor" ), " set_contact_monitor" , " is_contact_monitor_enabled" );
1022+ ADD_PROPERTY (PropertyInfo (Variant::FLOAT , " inertia" , PROPERTY_HINT_RANGE , U" 0,1000,0.01,or_greater,exp,suffix:kg\u22C5 px\u00B2 " ), " set_inertia" , " get_inertia" );
1023+ ADD_GROUP (" Deactivation" , " " );
10261024 ADD_PROPERTY (PropertyInfo (Variant::BOOL , " sleeping" ), " set_sleeping" , " is_sleeping" );
10271025 ADD_PROPERTY (PropertyInfo (Variant::BOOL , " can_sleep" ), " set_can_sleep" , " is_able_to_sleep" );
10281026 ADD_PROPERTY (PropertyInfo (Variant::BOOL , " lock_rotation" ), " set_lock_rotation_enabled" , " is_lock_rotation_enabled" );
10291027 ADD_PROPERTY (PropertyInfo (Variant::BOOL , " freeze" ), " set_freeze_enabled" , " is_freeze_enabled" );
10301028 ADD_PROPERTY (PropertyInfo (Variant::INT , " freeze_mode" , PROPERTY_HINT_ENUM , " Static,Kinematic" ), " set_freeze_mode" , " get_freeze_mode" );
1029+ ADD_GROUP (" Solver" , " " );
1030+ ADD_PROPERTY (PropertyInfo (Variant::BOOL , " custom_integrator" ), " set_use_custom_integrator" , " is_using_custom_integrator" );
1031+ ADD_PROPERTY (PropertyInfo (Variant::INT , " continuous_cd" , PROPERTY_HINT_ENUM , " Disabled,Cast Ray,Cast Shape" ), " set_continuous_collision_detection_mode" , " get_continuous_collision_detection_mode" );
1032+ ADD_PROPERTY (PropertyInfo (Variant::INT , " max_contacts_reported" , PROPERTY_HINT_RANGE , " 0,64,1,or_greater" ), " set_max_contacts_reported" , " get_max_contacts_reported" );
1033+ ADD_PROPERTY (PropertyInfo (Variant::BOOL , " contact_monitor" ), " set_contact_monitor" , " is_contact_monitor_enabled" );
10311034 ADD_GROUP (" Linear" , " linear_" );
10321035 ADD_PROPERTY (PropertyInfo (Variant::VECTOR2 , " linear_velocity" , PROPERTY_HINT_NONE , " suffix:px/s" ), " set_linear_velocity" , " get_linear_velocity" );
10331036 ADD_PROPERTY (PropertyInfo (Variant::INT , " linear_damp_mode" , PROPERTY_HINT_ENUM , " Combine,Replace" ), " set_linear_damp_mode" , " get_linear_damp_mode" );
0 commit comments