Skip to content

Commit

Permalink
Changed the way to calculate boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Jun 7, 2017
1 parent 650e70f commit fb60963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Swarm/CrawlingSwarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void Update()

Graphics.DrawMeshInstancedIndirect(
_template.mesh, 0, _material,
new Bounds(Vector3.zero, Vector3.one * 1.5f),
new Bounds(transform.position, transform.lossyScale * 1.5f),
_drawArgsBuffer, 0, _props
);

Expand Down
2 changes: 1 addition & 1 deletion Assets/Swarm/SwirlingSwarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void Update()

Graphics.DrawMeshInstancedIndirect(
_template.mesh, 0, _material,
new Bounds(Vector3.zero, Vector3.one * 1.5f),
new Bounds(transform.position, transform.lossyScale * 5),
_drawArgsBuffer, 0, _props
);
}
Expand Down

0 comments on commit fb60963

Please sign in to comment.