예제 #1
0
 /*
  * Sets reticle to found object's position and rotation
  * RaycastHit -> void
  */
 public void SetReticleToObject()
 {
     _currentHit = _raycastManager.GetCurrentHit();
     _reticleTransform.position   = _currentHit.point;
     _reticleTransform.localScale = _originalScale * _currentHit.distance;
     _reticleTransform.rotation   = Quaternion.FromToRotation(Vector3.forward, _currentHit.normal);
 }
예제 #2
0
 // Calls SetPosition
 // void -> void
 public void CheckNormalFound()
 {
     _currentHit = raycastManager.GetCurrentHit();
     SetPosition(_currentHit);
 }