/// 球生成 ///------------------------------------------------------------ public void MakeSphere() { debMesh = BasicMeshFactory.CreateSphere(1.0f, debSphDiv); debVb = new VertexBuffer(debMesh.VertexCount, debMesh.IndexCount, VertexFormat.Float3, VertexFormat.Float4); }
/// カプセル生成 ///------------------------------------------------------------ public void MakeCapsule() { /// 球体部分 debMesh = BasicMeshFactory.CreateSphere(1.0f, debSphDiv); debVb = new VertexBuffer(debMesh.VertexCount, debMesh.IndexCount, VertexFormat.Float3, VertexFormat.Float4); /// パイプ部分 debMesh2 = BasicMeshFactory.CreatePipe(1.0f, 1.0f, debSphDiv); debVb2 = new VertexBuffer(debMesh2.VertexCount, debMesh2.IndexCount, VertexFormat.Float3, VertexFormat.Float4); }