File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ void StaticBody2D::navmesh_parse_source_geometry(const Ref<NavigationPolygon> &p
163163 shape_outline.resize (14 );
164164 int shape_outline_inx = 0 ;
165165 for (int i = 0 ; i < 12 ; i++) {
166- Vector2 ofs = Vector2 (0 , (i > 3 && i <= 9 ) ? - capsule_height * 0.5 + capsule_radius : capsule_height * 0.5 - capsule_radius);
166+ Vector2 ofs = Vector2 (0 , (i > 3 && i <= 9 ) ? capsule_height * 0.5 - capsule_radius : - capsule_height * 0.5 + capsule_radius);
167167
168- shape_outline.write [shape_outline_inx] = static_body_xform.xform (Vector2 (Math::sin (i * turn_step), Math::cos (i * turn_step)) * capsule_radius + ofs);
168+ shape_outline.write [shape_outline_inx] = static_body_xform.xform (Vector2 (Math::sin (i * turn_step), - Math::cos (i * turn_step)) * capsule_radius + ofs);
169169 shape_outline_inx += 1 ;
170170 if (i == 3 || i == 9 ) {
171- shape_outline.write [shape_outline_inx] = static_body_xform.xform (Vector2 (Math::sin (i * turn_step), Math::cos (i * turn_step)) * capsule_radius - ofs);
171+ shape_outline.write [shape_outline_inx] = static_body_xform.xform (Vector2 (Math::sin (i * turn_step), - Math::cos (i * turn_step)) * capsule_radius - ofs);
172172 shape_outline_inx += 1 ;
173173 }
174174 }
You can’t perform that action at this time.
0 commit comments