new float[] -> Vector3f

This commit is contained in:
ikpil 2023-04-20 22:51:43 +09:00
parent a480ad7ce8
commit 331e4a2bd1
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ public class CapsuleGizmo : ColliderGizmo
cross(ref normals[2], normals[0], normals[1]); cross(ref normals[2], normals[0], normals[1]);
normalize(ref normals[2]); normalize(ref normals[2]);
triangles = generateSphericalTriangles(); triangles = generateSphericalTriangles();
float[] trX = new float[] { normals[0][0], normals[1][0], normals[2][0] }; var trX = Vector3f.Of(normals[0][0], normals[1][0], normals[2][0]);
float[] trY = new float[] { normals[0][1], normals[1][1], normals[2][1] }; var trY = Vector3f.Of(normals[0][1], normals[1][1], normals[2][1]);
float[] trZ = new float[] { normals[0][2], normals[1][2], normals[2][2] }; var trZ = Vector3f.Of(normals[0][2], normals[1][2], normals[2][2]);
float[] spVertices = generateSphericalVertices(); float[] spVertices = generateSphericalVertices();
float halfLength = 0.5f * vLen(axis); float halfLength = 0.5f * vLen(axis);
vertices = new float[spVertices.Length]; vertices = new float[spVertices.Length];