aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/example/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/example/game.cpp b/src/example/game.cpp
index 5c8d749..aab8d66 100644
--- a/src/example/game.cpp
+++ b/src/example/game.cpp
@@ -66,6 +66,11 @@ class MyScript1 : public Script {
//add collider switch
break;
}
+ case Keycode::Q: {
+ Rigidbody & rg = this->get_component<Rigidbody>();
+ rg.data.angular_velocity = 1;
+ break;
+ }
default:
break;
}