x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to get direction palms are facing with Leap Motion Controller

I am using the Leap Motion Controller with the Oculus Rift D2 (iirc) for a project and am trying to get the direction the palms are facing so that the fire effect I have shoots in that direction say for e.g. you are pushing out with your palms away from your face outward - I had also planned to shoot projectiles this way - but for the life of me I can't figure it out.

I had trouble setting up my Leap Hands correctly in the first place so that I could track the position of the hands - I wish I could access the positioning and direction straight from the component but I've tried and don't know how.

Attached are my BPs for how I get the location of the palms and my attempt at getting their direction as shown by the Leap guide I found earlier through googling which shows a debug arrow and box. As it is setup now the position of the box and arrow are way off but seem to rotate and map the direction correctly. Sorry I don't have access to the Oculus or Leap atm so I can't post those pics. Any suggestions would be helpful to me and others who search for the answer to the same problem.

So this is how I've managed to get the position of my palms from the leap and adapted it for the Oculus following the leap plugin instructions for others who are struggling (cause hell I know I did :') ):

alt text

And this is where I am struggling to get the direction my palms are facing:

alt text

By getting the debug location right I was hoping to use it to track the location and rotation to apply to my fire effect.

Thanks for any help or advice!

Sources used to help setup: https://www.youtube.com/watch?v=fmtBQzD7ZFE https://forums.unrealengine.com/showthread.php?49107-Plugin-Leap-Motion-Event-Driven

Product Version: UE 4.12
Tags:
hand2.png (459.9 kB)
hand.png (461.5 kB)
more ▼

asked Aug 13 '16 at 10:24 AM in Blueprint Scripting

avatar image

catonice
8 2 5 8

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question