armory3d / armory_templates

Starter Scenes
https://github.com/armory3d/armory/wiki
zlib License
52 stars 37 forks source link

Questions about the key binding section in the template #21

Closed MrSYSnokia closed 1 year ago

MrSYSnokia commented 1 year ago

I don't seem to have found any part of the key binding in the source code for this project. I spent a few days carefully reading the source code, trying to find the implementation method for "WASD" button movement in the project, but found nothing.

Code link: https://github.com/armory3d/armory_templates/blob/master/first_person/Sources/arm/FirstPersonController.hx

If the author sees this reply, please answer my questions. Thank you

rpaladin commented 1 year ago

Hi. The FirstPersonColler trait is a child class derived from the parent class, which is the CameraController trait. The parent class defines the WASD keybinding. The derivation is done here.

rpaladin commented 1 year ago

As there has been no further input from you, the OP, and my given answer above seems to be what the OP is looking for, I'm closing this issue. Feel free to continue asking anymore related questions in this issue in the future and we can reopen the issue if needed.