1 using System.Collections;
2 using System.Collections.Generic;
5 [RequireComponent(typeof(LineRenderer))]
16 private LineRenderer lineRenderer;
20 lineRenderer = GetComponent<LineRenderer>();
24 new Vector3(0.5f,0.5f,0.5f),
25 new Vector3(0.5f,-0.5f,0.5f),
26 new Vector3(-0.5f,-0.5f,0.5f),
27 new Vector3(-0.5f,0.5f,0.5f),
28 new Vector3(0.5f,0.5f,0.5f),
29 new Vector3(0.5f,0.5f,-0.5f),
30 new Vector3(0.5f,-0.5f,-0.5f),
31 new Vector3(-0.5f,-0.5f,-0.5f),
32 new Vector3(-0.5f,0.5f,-0.5f),
33 new Vector3(0.5f,0.5f,-0.5f),
34 new Vector3(0.5f,-0.5f,-0.5f),
35 new Vector3(0.5f,-0.5f,0.5f),
36 new Vector3(-0.5f,-0.5f,0.5f),
37 new Vector3(-0.5f,-0.5f,-0.5f),
38 new Vector3(-0.5f,0.5f,-0.5f),
39 new Vector3(-0.5f,0.5f,0.5f),
42 lineRenderer.positionCount = corners.Length;
44 for (
int i=0; i < corners.Length; i++) {
47 lineRenderer.SetPositions(corners);
float size
Size of the edge of the box.
Bounding box. Draw a box centered at the transform position using a line renderer. Used to give a spatial reference when tuning the global scale of a chaotic system.