summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinston Yallow <44872771+winston-yallow@users.noreply.github.com>2021-01-27 14:57:01 +0100
committerWinston Yallow <44872771+winston-yallow@users.noreply.github.com>2021-01-27 14:57:01 +0100
commit9684bc40df14381691940675083079cba22fc41d (patch)
tree6c62b4ddb65ffb806d47df8eb0734e66709c6e83
parent549ffb9be9521a9092ddd4ec87eac1f9b735f45c (diff)
Correctly expose transform as 3D transform
-rw-r--r--servers/physics_server_3d.cpp2
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() {}