Jump to content

Leap Motion FTW


theoffspring18

Recommended Posts

Hi,

i try to use the leapmotion for a project i have


I followed this tutorial for the set up:

http://wiki.torque3d.org/coder:leap-motion-setup

and i added the following piece of code in "script/client/default.bind.cs" :


"

function trytomove( %val )

{

moveforward(%val);

}


function trytomove2( %val )

{

movebackward(%val);

echo ("BONJOUR");

}


$LeapMotion::GenerateSingleHandRotationAsAxisEvents = true;

moveMap.bind( leapmotion, lm_handaxisx, "D", "-0.23 0.23", trytomove );

moveMap.bind( leapmotion, lm_handaxisy, "D", "-0.23 0.23", trytomove2 );

"


I try to just move my player to check if the controller works and nothing is happening,

It's like the leap motion is not reconized on my project , did anyone here use the leap motion ?


I precise that my leap motion works fine with the marble motion game:

http://wiki.torque3d.org/demo:marble-motion


Thanks for your help in advance,


Sincerly,

Link to comment
Share on other sites

Small update:

When i run the generateProject.bat it says : "unable to copy required file for project:

Source file: /LeapSDK/lib/x86/LeapD.dll


I can't find this file in the latest version of the SDK of the leap motion, maybe it has been removed, maybe it is why it isn't working.


Does anyone ever use LeapMotion for their project ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...