aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/ray_cast_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-11 00:52:51 -0300
committerJuan Linietsky2017-01-11 00:52:51 -0300
commitbc26f905817945300d397696330d1ab04a1af33c (patch)
treed06338399c8ea410042f6631fb3db3efcc100b05 /scene/2d/ray_cast_2d.cpp
parent710692278d1353aad08bc7bceb655afc1d6c950c (diff)
downloadgodot-bc26f905817945300d397696330d1ab04a1af33c.tar.gz
godot-bc26f905817945300d397696330d1ab04a1af33c.tar.zst
godot-bc26f905817945300d397696330d1ab04a1af33c.zip
Diffstat (limited to 'scene/2d/ray_cast_2d.cpp')
-rw-r--r--scene/2d/ray_cast_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/ray_cast_2d.cpp b/scene/2d/ray_cast_2d.cpp
index 572575e4e..14dfc10d9 100644
--- a/scene/2d/ray_cast_2d.cpp
+++ b/scene/2d/ray_cast_2d.cpp
@@ -161,7 +161,7 @@ void RayCast2D::_notification(int p_what) {
if (!get_tree()->is_editor_hint() && !get_tree()->is_debugging_collisions_hint())
break;
- Matrix32 xf;
+ Transform2D xf;
xf.rotate(cast_to.angle());
xf.translate(Vector2(0,cast_to.length()));
@@ -201,7 +201,7 @@ void RayCast2D::_update_raycast_state() {
Physics2DDirectSpaceState *dss = Physics2DServer::get_singleton()->space_get_direct_state(w2d->get_space());
ERR_FAIL_COND( !dss );
- Matrix32 gt = get_global_transform();
+ Transform2D gt = get_global_transform();
Vector2 to = cast_to;
if (to==Vector2())