Iris Oostra
  • Home
  • Portfolio
    • Math Dungeon
    • VR Portfolio
      • Blendshapes
      • Concepting & Design
      • Group Coaching
      • Individual Coaching
      • Pressure Cooker
      • Programming
    • Pressure Cooker: Candy Sorter
    • Lava Shader
    • Bunny Platformer
    • Hero’s Crucible
    • DnD app
    • Zwangerschapsapp
  • Hobby’s
    • Naaiprojecten
    • Tekeningen
      • Alle tekeningen
      • Digitale tekeningen
      • Marker tekeningen
      • Potloodtekeningen
      • Verf
  • Contact
3 november 2021

Hand Tracking Grabbing objects

Hand Tracking Grabbing objects
3 november 2021

For dressing the character we want to let the player grab clothing from the world and throw it onto the character. For this I followed another tutorial from the same person as I followed the other hand tracking tutorials from.

The tutorial I used for grabbing with hand tracking.

To make grabbing possible you need to do a few things. First of all I wrote the following script which overrides the grab script for controllers so I can use it for hand tracking (to do this I added the virtual keyword to the old script and used override in my own script).

The script checks whether the player is pinching and is not already holding something and there is a grabbable object near. If all of these are true then the player grabs the object.

We (I was sick but Scott took over the finishing touches) also tried to make it so that the player can throw the object, but it did not work because the method we overrided did not work well with hand tracking. The method is supposed to take the last position of the object and compute this with the position of your hand and create a velocity from this, but this did not translate from controller to hand, because the Oculus Integration has a mistake where the lastPos is equal to the current transform.

Zoeken

Categorieën

  • Blendshapes
  • Concepting & Design
  • Group Coaching
  • Individual Coaching
  • Pressure Cooker
  • Programming

Meest recente berichten

Concepting & Design23 januari 2022
Introduction programming23 januari 2022
Individual coaching23 januari 2022
Group coaching23 januari 2022
Blend shapes23 januari 2022

Iris Oostra

LinkedIn – GitHub – GitHub(Oud) – DeviantArt

© 2024