<commit_before>package;

import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
import kha.math.Vector2;
import verlet.Objects.Tire;
import verlet.Verlet;
import verlet.Renderer;
import verlet.collision.Shapes;

class Project {
	var world:Verlet;
	var verletRenderer:Renderer;
	
	public function new() {
		System.notifyOnRender(render);
		Scheduler.addTimeTask(update, 0, 1 / 60);
		world = new Verlet(800, 600);
		// Render Verlet world
		verletRenderer = Renderer.Instance;
		
		// Entities
		new Tire(new Vector2(500,32), 64, 32, .05, .5);
		
		// Colliders
		new Circle(new Vector2(222, 200), 256);
		new Circle(new Vector2(666, 300), 128);
		new Circle(new Vector2(400, 600), 128);
		new Box(new Vector2(222, 200), 256, 80);
	}

	function update(): Void {
		
		world.update(10);
	}

	function render(framebuffer: Framebuffer): Void {		
		var graphics = framebuffer.g2;
		graphics.begin();
		verletRenderer.render(graphics);
		graphics.end();
	}
}<commit_msg>Collision: Move Box out of way<commit_after>package;

import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
import kha.math.Vector2;
import verlet.Objects.Tire;
import verlet.Verlet;
import verlet.Renderer;
import verlet.collision.Shapes;

class Project {
	var world:Verlet;
	var verletRenderer:Renderer;
	
	public function new() {
		System.notifyOnRender(render);
		Scheduler.addTimeTask(update, 0, 1 / 60);
		world = new Verlet(800, 600);
		// Render Verlet world
		verletRenderer = Renderer.Instance;
		
		// Entities
		new Tire(new Vector2(500,32), 64, 32, .05, .5);
		
		// Colliders
		new Circle(new Vector2(222, 200), 256);
		new Circle(new Vector2(666, 300), 128);
		new Circle(new Vector2(400, 600), 128);
		new Box(new Vector2(200, 200), 256, 80);
	}

	function update(): Void {
		
		world.update(10);
	}

	function render(framebuffer: Framebuffer): Void {		
		var graphics = framebuffer.g2;
		graphics.begin();
		verletRenderer.render(graphics);
		graphics.end();
	}
}
{'fraction_non_alphanumeric': 0.13194090677534387, 'fraction_numerical': 0.07030056036678553, 'mean_word_length': 4.223404255319149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6483509', 'n_tokens_mistral': 848, 'n_tokens_neox': 678, 'n_words': 173}