private float3[] GetVerticesOfTriangle(float3 position, float3 halfSize, float3 rotation) { float3[] vertices = new float3[3]; vertices[0] = position + new float3(-halfSize.x, -halfSize.y, 0); vertices[1] = position + new float3(halfSize.x, -halfSize.y, 0); vertices[2] = position + new float3(0, halfSize.y, 0); for (int i = 0; i < vertices.Length; i++) { vertices[i] = ColPhysics.RotatePoint3D(vertices[i], position, rotation.y, rotation.z, rotation.x); } return(vertices); }