Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created December 9, 2023 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/7efbd5a19e9c16f1f79352a8b96888c0 to your computer and use it in GitHub Desktop.
Save flushpot1125/7efbd5a19e9c16f1f79352a8b96888c0 to your computer and use it in GitHub Desktop.
// Create behaviors to drag and scale with pointers in VR
var sixDofDragBehavior = new BABYLON.SixDofDragBehavior()
boundingBox.addBehavior(sixDofDragBehavior)
var multiPointerScaleBehavior = new BABYLON.MultiPointerScaleBehavior()
boundingBox.addBehavior(multiPointerScaleBehavior)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment