Trying to use the Leap Motion (so hard)
by Bonjourleapmotion · in Torque 3D Beginner · 04/20/2016 (4:05 am) · 0 replies
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,
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,
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,
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,