The Leap::Controller class from the SDK should be instantiated in your application (for example in your character's constructor or BeginPlay() function) so that it can be passed to the LeapInputReader class described below The Leap SDK is required, so please download and add to your project's lib paths How to integrate into Unreal Engine C++ project To include turning left/right as part of the controls, we can map the turn to the yaw angle of the hand. So the forward/backward or left/right position of the hand within the disk would translate directly to the movement direction and speed. In 3D, the equivalent implementation is a disk floating in 3D space, where the movement of the hand within this disk controls forward/backward and left/right movement the same way the left analog stick would on a controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |