Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
0.8.4:charactercontrolling [2022/06/21 21:36] – [TriggerPoints Management] admin | 0.8.4:charactercontrolling [2022/06/21 21:38] (current) – [Audio Manager Controller] admin | ||
---|---|---|---|
Line 196: | Line 196: | ||
The following components are allowed to link to a character controller: | The following components are allowed to link to a character controller: | ||
- | | + | |
- | | + | |
- | | + | |
- | ==== Audio Manager Controller ==== | ||
- | The audio manager controller is an exchange layer between your character controller and an audio manager. | ||
- | You can playback sounds automatically, | ||
- | |||
- | The following example showing how to setup an audio manager controller at runtime. Here we show the usage of | ||
- | an input stated handling by keyboard input. | ||
- | |||
- | <file pascal> | ||
- | FAudioCtrl := TGorillaAudioManagerController.Create(Self); | ||
- | FAudioCtrl.AudioManager := Self.FAudioManager; | ||
- | FAudioCtrl.AddHotKeyMapping(' | ||
- | TGorillaCharacterControllerHotKey.KeyboardMoveForward, | ||
- | FAudioCtrl.AddHotKeyMapping(' | ||
- | TGorillaCharacterControllerHotKey.KeyboardMoveBackward, | ||
- | FAudioCtrl.AddHotKeyMapping(' | ||
- | TGorillaCharacterControllerHotKey.KeyboardMoveForward, | ||
- | FAudioCtrl.AddHotKeyMapping(' | ||
- | TGorillaCharacterControllerHotKey.KeyboardMoveBackward, | ||
- | </ | ||
===== Physics Character Controller ===== | ===== Physics Character Controller ===== | ||