Last active
February 12, 2017 15:11
-
-
Save flushpot1125/a1ff8d010e1957b24d38e6ff50853be3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ManipulationRecognizer_ManipulationStartedEvent(InteractionSourceKind source, Vector3 position, Ray ray) | |
{ | |
if (HandsManager.Instance.FocusedGameObject != null) | |
{ | |
IsManipulating = true; | |
ManipulationPosition = position; | |
HandsManager.Instance.FocusedGameObject.SendMessageUpwards("PerformManipulationStart", position); | |
} | |
} | |
private void ManipulationRecognizer_ManipulationUpdatedEvent(InteractionSourceKind source, Vector3 position, Ray ray) | |
{ | |
if (HandsManager.Instance.FocusedGameObject != null) | |
{ | |
IsManipulating = true; | |
ManipulationPosition = position; | |
HandsManager.Instance.FocusedGameObject.SendMessageUpwards("PerformManipulationUpdate", position); | |
} | |
} | |
private void ManipulationRecognizer_ManipulationCompletedEvent(InteractionSourceKind source, Vector3 position, Ray ray) | |
{ | |
IsManipulating = false; | |
} | |
private void ManipulationRecognizer_ManipulationCanceledEvent(InteractionSourceKind source, Vector3 position, Ray ray) | |
{ | |
IsManipulating = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment