Skip to content
Discussion options

You must be logged in to vote

Yes, that's a real documentation bug, not a typo on your end. I pulled the current live docs page, and the example as published literally creates a pointer named triangleArray, then references an undefined vertexArray in the next line: TriangleVertexArray* triangleArray = new TriangleVertexArray(nbVertices, vertices, 3 * sizeof(float), nbTriangles, indices, 3 * sizeof(int), TriangleVertexArray::VertexDataType::VERTEX_FLOAT_TYPE, TriangleVertexArray::IndexDataType::INDEX_INTEGER_TYPE); ... TriangleMesh* triangleMesh = physicsCommon.createTriangleMesh(vertexArray, messages); That's an unrelated, never declared variable - confirmed stale/broken sample.

But even fixing that name wouldn't make…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AntonioTorres23
Comment options

Answer selected by AntonioTorres23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants