Texture tail is now wrapping nicely but nothing else is...

This commit is contained in:
2026-03-01 17:22:43 +01:00
parent a11805ad30
commit fd636e2d9a
3 changed files with 9 additions and 5 deletions

View File

@@ -63,8 +63,8 @@ func get_boundaried_position(position):
#return position.clamp(Vector2.ZERO, screen_size)
# periodic
position.x = wrapf(position.x, 0, screen_size.x)
position.y = wrapf(position.y, 0, screen_size.y)
position.x = wrapf(position.x, -viewport_size.x/2 , screen_size.x + viewport_size.x/2)
position.y = wrapf(position.y, -viewport_size.y/2, screen_size.y + viewport_size.y/2)
return position
func get_new_flow():