This post will be updated while I work on directional heading controls.
2/20
I realized something that was causing really poor results before (which can be seen in the video in the previous post). The agents were only changing direction, but not really moving much. This turned out to be because I was sampling the velocity of the hand at each frame and not giving the agents much time to move before receiving another target. There is now a 1 second delay between hand velocity calculations and the agents actually start to move in the proper direction with a much better visual result. This does make me question how the directional heading control should work though. Should the agents move in that direction until they reach an obstacle or the boundary of the world, or should their velocity drop off and they eventually stop?
The biggest problem is that the user will most likely move their hands while the agents are moving, but is the user giving a new directional heading, trying to do something else, or just doing some non-game related motion?
A threshold will be necessary to ignore small hand motions. Also I am considering including a period of time after the command is given where the agents will ignore new hand motions giving the user time to relax their arms or switch out of directional heading control mode, etc.
That's all for now, thanks!
Marley
No comments:
Post a Comment