mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
提交Unity 联机Pro
This commit is contained in:
27
JNFrame2/Assets/JNGame/Map/DotRecast/Util/MeshData.cs
Normal file
27
JNFrame2/Assets/JNGame/Map/DotRecast/Util/MeshData.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using JNGame.Math;
|
||||
using UnityEngine;
|
||||
|
||||
namespace JNGame.Map.DotRecast.Util
|
||||
{
|
||||
[System.Serializable]
|
||||
public class MeshData
|
||||
{
|
||||
public int vertexCount;
|
||||
public int[] triangles;
|
||||
public LVector3[] vertices;
|
||||
|
||||
public MeshData() { }
|
||||
|
||||
public MeshData(UnityEngine.Mesh mesh)
|
||||
{
|
||||
vertexCount = mesh.vertexCount;
|
||||
triangles = mesh.triangles;
|
||||
vertices = new LVector3[mesh.vertices.Length];
|
||||
for (int i = 0; i < vertices.Length; i++)
|
||||
{
|
||||
var vertice = mesh.vertices[i];
|
||||
vertices[i] = new LVector3((LFloat)vertice.x,(LFloat)vertice.y,(LFloat)vertice.z);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7fc8a46fde8346eda32b1c90ba6bfaf8
|
||||
timeCreated: 1715343621
|
Reference in New Issue
Block a user