diff options
| author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 19:32:15 +0100 | 
|---|---|---|
| committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 19:32:15 +0100 | 
| commit | ff618da3f97237796042fa3664da59ed147bc1da (patch) | |
| tree | cfc283425f145b16a2b2e3b1a0a5760e8015a2b1 /src/example/game.cpp | |
| parent | fb018cd8511e9cae408f8ea7d2b73e66a452625b (diff) | |
improved comments
Diffstat (limited to 'src/example/game.cpp')
| -rw-r--r-- | src/example/game.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/game.cpp b/src/example/game.cpp index c439f5d..4e16d4a 100644 --- a/src/example/game.cpp +++ b/src/example/game.cpp @@ -18,7 +18,7 @@ using namespace std;  class MyScript : public Script {  	bool oncollision(const CollisionEvent& test) { -		Log::logf("Box {} script on_collision()", test.info.first_collider.game_object_id); +		Log::logf("Box {} script on_collision()", test.info.this_collider.game_object_id);  		return true;  	}  	void init() { @@ -65,7 +65,7 @@ public:  		.body_type = Rigidbody::BodyType::DYNAMIC,  		.linear_velocity = {1,1},  		.constraints = {0, 0, 0}, -		.elastisity = 1, +		.elastisity_coefficient = 1,  		.offset = {0,0},  	});  	game_object1.add_component<BoxCollider>(vec2{0, 0}, 20, 20);  |