Skip to content

Commit

Permalink
fix(Controller): ensure controller colliders scale
Browse files Browse the repository at this point in the history
fix(Controller): ensure controller colliders scale

The colliders added automatically by the script
are now scaled properly according to the parent scale
  • Loading branch information
TMaloteaux committed Sep 12, 2016
1 parent 5816c19 commit ec40a45
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 ec40a45

Please sign in to comment.