I wanted to make a fire bending game for fun and I want it work by the player striking poses, same way the earth bending in this game works.
How would I do this? The game above measures your height and arm length at the start but I’m not completely sure why. Maybe for repositioning colliders? Or having some math equations like
yea, i have 2 approaches, they both include you determning what parameters are relevent for the signal detection (i.e. hand rotation, hand velocity, etc). you may need to smooth the derived value with weighted averages so the data is less jumpy. for example
I can elaborate on the approaches, but what exactly is your use case?
Approach 1 is the data science way, collecting a ton of data points and running statistical analasys (or possibly ML) to generate an equation for detecting your signal.
Approach 2 is just old school reasoning about a well defined description of the motion youre interested in. Then reasoning about what could trigger false positives.
I would start this way. A good “let’s understand the problem space” experiment would be to make some code to use the mouse to draw a short line segment onscreen (aka, the player input), and then judge how closely that line segment matches an example line segment (aka, the reference pose), judging it for slope and length perhaps.