diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-12 14:54:23 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-12 14:54:23 +0100 |
commit | 72ba9f9dd9553c8bbca83f4f73a59d28d1f89273 (patch) | |
tree | 1676514edc2124ec4a83c277e20b226871850a10 /src | |
parent | ef0235137fc931c09e7f6493c7df46d09c47008d (diff) |
added rotation for preview
Diffstat (limited to 'src')
-rw-r--r-- | src/example/game.cpp | 5 |
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; } |