<commit_before>#pragma once

#include <polar/support/phys/responder/base.h>

namespace polar::support::phys::responder {
	class rigid : public base {
	  public:
		void respond(core::polar *engine, IDType id, DeltaTicks) override {
			if(auto p = engine->get<component::position>(id)) {
				p->pos.revert();
				p->pos.derivative()->x *= -1;
			}
		}
	};
} // namespace polar::support::phys::responder<commit_msg>rigid: Flip y vel too<commit_after>#pragma once

#include <polar/support/phys/responder/base.h>

namespace polar::support::phys::responder {
	class rigid : public base {
	  public:
		void respond(core::polar *engine, IDType id, DeltaTicks) override {
			if(auto p = engine->get<component::position>(id)) {
				p->pos.revert();
				p->pos.derivative()->x *= -1;
				p->pos.derivative()->y *= -1;
			}
		}
	};
} // namespace polar::support::phys::responder
{'fraction_non_alphanumeric': 0.18013856812933027, 'fraction_numerical': 0.003464203233256351, 'mean_word_length': 4.160714285714286, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '518241', 'n_tokens_mistral': 330, 'n_tokens_neox': 293, 'n_words': 57}