mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Separate space override modes for gravity/damping in Area
Also make inspector clearer for gravity point properties.
This commit is contained in:
parent
eb98fd9442
commit
3d1c123d45
32 changed files with 621 additions and 332 deletions
|
@ -653,9 +653,6 @@ void PhysicsServer3D::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("area_set_space", "area", "space"), &PhysicsServer3D::area_set_space);
|
||||
ClassDB::bind_method(D_METHOD("area_get_space", "area"), &PhysicsServer3D::area_get_space);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("area_set_space_override_mode", "area", "mode"), &PhysicsServer3D::area_set_space_override_mode);
|
||||
ClassDB::bind_method(D_METHOD("area_get_space_override_mode", "area"), &PhysicsServer3D::area_get_space_override_mode);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("area_add_shape", "area", "shape", "transform", "disabled"), &PhysicsServer3D::area_add_shape, DEFVAL(Transform3D()), DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("area_set_shape", "area", "shape_idx", "shape"), &PhysicsServer3D::area_set_shape);
|
||||
ClassDB::bind_method(D_METHOD("area_set_shape_transform", "area", "shape_idx", "transform"), &PhysicsServer3D::area_set_shape_transform);
|
||||
|
@ -901,12 +898,15 @@ void PhysicsServer3D::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(SHAPE_SOFT_BODY);
|
||||
BIND_ENUM_CONSTANT(SHAPE_CUSTOM);
|
||||
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY_OVERRIDE_MODE);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY_VECTOR);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY_IS_POINT);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY_DISTANCE_SCALE);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_GRAVITY_POINT_ATTENUATION);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_LINEAR_DAMP);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_ANGULAR_DAMP);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_PRIORITY);
|
||||
BIND_ENUM_CONSTANT(AREA_PARAM_WIND_FORCE_MAGNITUDE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue