From 68212e26d875c1c758fc525159eee738ac94a936 Mon Sep 17 00:00:00 2001 From: manuel5975p Date: Sun, 12 Jul 2020 01:01:40 +0200 Subject: [PATCH] Fix typos in documentation Add variable type in declaration Fix PolygonaVertexArray -> PolygonVertexArray --- documentation/UserManual/ReactPhysics3D-UserManual.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/UserManual/ReactPhysics3D-UserManual.tex b/documentation/UserManual/ReactPhysics3D-UserManual.tex index a7a33052..8aaf65bf 100644 --- a/documentation/UserManual/ReactPhysics3D-UserManual.tex +++ b/documentation/UserManual/ReactPhysics3D-UserManual.tex @@ -1201,7 +1201,7 @@ indices[16]=2; indices[17]=3; indices[18]=7; indices[19]=6; indices[20]=0; indices[21]=4; indices[22]=7; indices[23]=3; // Description of the six faces of the convex mesh -polygonFaces = new PolygonVertexArray::PolygonFace[6]; +PolygonVertexArray::PolygonFace* polygonFaces = new PolygonVertexArray::PolygonFace[6]; PolygonVertexArray::PolygonFace* face = polygonFaces; for (int f = 0; f < 6; f++) { @@ -1215,7 +1215,7 @@ for (int f = 0; f < 6; f++) { } // Create the polygon vertex array -PolygonaVertexArray* polygonVertexArray = new PolygonVertexArray(8, vertices, 3 x sizeof(float), +PolygonVertexArray* polygonVertexArray = new PolygonVertexArray(8, vertices, 3 x sizeof(float), indices, sizeof(int), 6, polygonFaces, PolygonVertexArray::VertexDataType::VERTEX_FLOAT_TYPE, PolygonVertexArray::IndexDataType::INDEX_INTEGER_TYPE);