Skip to content

Commit

Permalink
Merge pull request #563 from TMaloteaux/fix/controller-ensure-collide…
Browse files Browse the repository at this point in the history
…r-scale

fix(Controller): ensure controller colliders scale
  • Loading branch information
thestonefox authored Sep 12, 2016
2 parents 5816c19 + ec40a45 commit 61cfbf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/VRTK/Scripts/VRTK_InteractTouch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ private void CreateTouchCollider()
{
controllerCollisionDetector = Instantiate(defaultColliderPrefab, transform.position, transform.rotation) as GameObject;
controllerCollisionDetector.transform.SetParent(transform);
controllerCollisionDetector.transform.localScale = transform.localScale;
controllerCollisionDetector.name = "ControllerColliders";
destroyColliderOnDisable = true;
}
Expand Down

0 comments on commit 61cfbf2

Please sign in to comment.