diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-27 16:05:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 16:05:42 +0100 |
commit | 1f3d52eed7e2fb66d4f786eb5af9e54a38f429db (patch) | |
tree | 6c62b4ddb65ffb806d47df8eb0734e66709c6e83 | |
parent | 549ffb9be9521a9092ddd4ec87eac1f9b735f45c (diff) | |
parent | 9684bc40df14381691940675083079cba22fc41d (diff) |
Merge pull request #45503 from winston-yallow/fix-bodystate-transform
Correctly expose transform as 3D transform
-rw-r--r-- | servers/physics_server_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_server_3d.cpp b/servers/physics_server_3d.cpp index 27ebe32e50..702b35f8d1 100644 --- a/servers/physics_server_3d.cpp +++ b/servers/physics_server_3d.cpp @@ -128,7 +128,7 @@ void PhysicsDirectBodyState3D::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "angular_velocity"), "set_angular_velocity", "get_angular_velocity"); ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "linear_velocity"), "set_linear_velocity", "get_linear_velocity"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "sleeping"), "set_sleep_state", "is_sleeping"); - ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM2D, "transform"), "set_transform", "get_transform"); + ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform"); } PhysicsDirectBodyState3D::PhysicsDirectBodyState3D() {} |