Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Update files and fix bug
Browse files Browse the repository at this point in the history
1. Update BhapticsOculusExample unitypacakge
2. Fix lineRenderer bug on Demo Shooter
  • Loading branch information
SanghunK authored and westside committed Sep 4, 2020
1 parent 32ea1fe commit 5206813
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,19 @@ void Start()
characterController.detectCollisions = false;

lineRenderer = GetComponent<LineRenderer>();
lineRenderer.startWidth = 0;
lineRenderer.endWidth = 0;
if (lineRenderer != null)
{
if (IsRaycastingShooting)
{
lineRenderer.startWidth = 0.02f;
lineRenderer.endWidth = 0.1f;
}
else
{
lineRenderer.startWidth = 0;
lineRenderer.endWidth = 0;
}
}

tactSender = GetComponent<HapticSender>();
}
Expand Down Expand Up @@ -69,8 +80,6 @@ private void ShootPlayer()
lineRenderer.startWidth = 0;
lineRenderer.endWidth = 0;
}


}

if (IsRaycastingShooting)
Expand Down

0 comments on commit 5206813

Please sign in to comment.