This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "1592929254567-0", | |
| "indexed_at_ms": 1592929254567, | |
| "event": { | |
| "method": "POST", | |
| "path": "/", | |
| "query": {}, | |
| "headers": { | |
| "x-forwarded-for": "216.41.237.104", | |
| "x-forwarded-proto": "https", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Voxelizer : MonoBehaviour | |
| { | |
| public GameObject parent; | |
| public GameObject voxel; | |
| private float height, width; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1456974563 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float segmentAngle; | |
| segmentAngle = 360f / segments; | |
| float partialSegmentAngle = segmentAngle / angleFraction; | |
| float currentRotation = segmentAngle; | |
| for (int i = 0; i < segments; i++) | |
| { | |
| Mesh mesh = new Mesh(); | |
| Vector3[] vertices = new Vector3[angleFraction + 2]; |