Skip to content

Class and editor-extension to more easily generate snapOffset.

License

Notifications You must be signed in to change notification settings

udonba/SnapOffsetHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapOffsetHelper

Class and editor-extension to more easily generate snapOffset.

Usage

  1. Import Oculus Integration and SnapOffsetHelper.

  2. Add "SnapOffssetGenerator" to OVRGrabbable object.
    image01

  3. Select directory to save prefab file. ("Prefabs" only)
    image02

  4. Attach GripTransform.
    GripTransform is location of the hand when OVRGrabber grabs it.
    image03

  5. Push "Generate SnapOffset Prefab" button.
    When success it, automatically focus to prefab.
    image04

  6. Attach prefab to OVRGrabbable.snapOffset field.
    And check "Snap Position" and "Snap Rotation".
    image05

Environment

  • Unity v2018.4.0f1
  • Oculus Utilities v1.38.0, OVRPlugin v1.38.0, SDK v1.38.0.