godot/scene/2d
lawnjelly 847a37b196 Change 2d transform snapping from floor to round
Two common problems have emerged as a result of transform snapping:
1) Camera jitter with a camera following a snapped object
2) Pixel gaps between e.g. a platform and a player, where a platform rounds down and a player rounds up

Using round seems to greatly reduce problems due to camera jitter. It also may prove better for  pixel gaps because pixel art is often designed on a grid, so whole numbers are too expected, which are unstable with floor().
2021-02-28 14:34:39 +00:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
animated_sprite.cpp Change 2d transform snapping from floor to round 2021-02-28 14:34:39 +00:00
animated_sprite.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
area_2d.cpp Rename the final parameter of area_shape_entered-exited local_shape. 2021-01-15 09:46:19 +00:00
area_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_stream_player_2d.cpp Modernize atomics 2021-02-18 12:23:25 +01:00
audio_stream_player_2d.h Modernize atomics 2021-02-18 12:23:25 +01:00
back_buffer_copy.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
back_buffer_copy.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera_2d.cpp Camera2D: Fix crash calling align when not in tree 2021-02-15 10:54:16 +01:00
camera_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
canvas_item.cpp Modernize Mutex 2021-02-18 11:58:08 +01:00
canvas_item.h Modernize Mutex 2021-02-18 11:58:08 +01:00
canvas_modulate.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
canvas_modulate.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
collision_object_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
collision_object_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
collision_polygon_2d.cpp Fix collision shape update when changing shape properties 2021-01-13 16:54:22 +01:00
collision_polygon_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
collision_shape_2d.cpp Collision Shape 2D 'Disabled' Visualization Correction 2021-02-19 15:51:43 +01:00
collision_shape_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
cpu_particles_2d.cpp Modernize Mutex 2021-02-18 11:58:08 +01:00
cpu_particles_2d.h Modernize Mutex 2021-02-18 11:58:08 +01:00
joints_2d.cpp Merge pull request #45163 from akien-mga/3.2-cherrypicks 2021-01-13 17:38:05 +01:00
joints_2d.h Merge pull request #45163 from akien-mga/3.2-cherrypicks 2021-01-13 17:38:05 +01:00
light_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
light_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
light_occluder_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
light_occluder_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
line_2d.cpp Line2D::set_point_position Fail if passed index is out of bounds 2021-02-22 10:16:22 +01:00
line_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
line_builder.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
line_builder.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
mesh_instance_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
mesh_instance_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
multimesh_instance_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
multimesh_instance_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
navigation_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
navigation_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
navigation_polygon.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
navigation_polygon.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
node_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
node_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
parallax_background.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
parallax_background.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
parallax_layer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
parallax_layer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
particles_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
particles_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
path_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
path_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_body_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_body_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
polygon_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
polygon_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
position_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
position_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ray_cast_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ray_cast_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
remote_transform_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
remote_transform_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
skeleton_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
skeleton_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
sprite.cpp Change 2d transform snapping from floor to round 2021-02-28 14:34:39 +00:00
sprite.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
tile_map.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
tile_map.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
touch_screen_button.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
touch_screen_button.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visibility_notifier_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visibility_notifier_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
y_sort.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
y_sort.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00