cqtan / AR-Deco

An iOS augmented reality project using the Leap Motion Controller on an iPhone 6 to move virtual furniture around through hand gestures while using a smartphone compatible head-mounted-device. Check Readme for more info (in German).
2 stars 0 forks source link

Gestures: new grab gesture for positioning #14

Open cqtan opened 6 years ago

cqtan commented 6 years ago

Instead of doing a collision with hand and furniture, another idea that includes raycasting as a way to manipulate objects further away is made. By outlining furniture that the user targets with raycasting from 1 hand, it becomes visibly clear what the user is targeting. While the ray collides with the furniture and the user performs and holds the grab gesture, the furniture is attached to the point of collision, making the furniture move with the ray in relation to the distance of the hand.

cqtan commented 6 years ago

Slight change to the way objects are grabbed. Instead of raycasting from the hand, the ray origins from the camera, i.e. the user's headmotion instead. Reason for this are:

Now the user can simply look at the object, it will be outlined with a yellow-ish border and the user can perform a 1-handed grab gesture anywhere in the tracking field of the Leap to reposition the object. The distance of the object will be handled in the next ticket (#15).