aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
commit3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch)
tree30d908c427ff9b4ee53402fbf52cb15704e58623 /src/example
parentfde229c24dcbd1ed844880a35eabddb88279802b (diff)
merge #25 + nitpicking
Diffstat (limited to 'src/example')
-rw-r--r--src/example/physics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/physics.cpp b/src/example/physics.cpp
index a7e94f6..848f857 100644
--- a/src/example/physics.cpp
+++ b/src/example/physics.cpp
@@ -11,7 +11,7 @@ using namespace std;
int main(int argc, char * argv[]) {
GameObject * game_object;
game_object = new GameObject(0, "Name", "Tag", Vector2{0, 0}, 0, 0);
- game_object->add_component<Rigidbody>(Rigidbody::RigidbodyData{
+ game_object->add_component<Rigidbody>(Rigidbody::Data{
.mass = 1,
.gravity_scale = 1,
.body_type = Rigidbody::BodyType::DYNAMIC,