Fix issues in user manual
This commit is contained in:
parent
fb6796b57b
commit
5b187e1405
|
@ -1000,8 +1000,8 @@ int indices[3 * nbTriangles] = ...;
|
||||||
rp3d::TriangleVertexArray* triangleArray =
|
rp3d::TriangleVertexArray* triangleArray =
|
||||||
new rp3d::TriangleVertexArray(nbVertices, vertices, 3 * sizeof(float), nbTriangles,
|
new rp3d::TriangleVertexArray(nbVertices, vertices, 3 * sizeof(float), nbTriangles,
|
||||||
indices, 3 * sizeof(int),
|
indices, 3 * sizeof(int),
|
||||||
rp3d::TriangleVertexArray::VERTEX_FLOAT_TYPE,
|
rp3d::TriangleVertexArray::VertexDataType::VERTEX_FLOAT_TYPE,
|
||||||
rp3d::TriangleVertexArray::INDEX_INTEGER_TYPE);
|
rp3d::TriangleVertexArray::IndexDataType::INDEX_INTEGER_TYPE);
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\vspace{0.6cm}
|
\vspace{0.6cm}
|
||||||
|
@ -1111,7 +1111,7 @@ maxHeight, heightValues, rp3d::HeightFieldShape::HEIGHT_FLOAT_TYPE);
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
// Create the sphere collision shape
|
// Create the sphere collision shape
|
||||||
rp3d::decimal radius = rp3d::decimal(3.0)
|
rp3d::decimal radius = rp3d::decimal(3.0)
|
||||||
const rp3d::BoxShape shape(radius);
|
rp3d::SphereShape shape(radius);
|
||||||
|
|
||||||
// Transform of the collision shape
|
// Transform of the collision shape
|
||||||
// Place the shape at the origin of the body local-space
|
// Place the shape at the origin of the body local-space
|
||||||
|
|
Loading…
Reference in New Issue
Block a user