From 78bbb7320df1320dcf5b384317f6313755769182 Mon Sep 17 00:00:00 2001 From: Mkr Date: Thu, 16 Aug 2018 21:32:25 -0700 Subject: [PATCH] Make getVertexAt and getHeightAt public to allow for inspecting the height field (e.g. for debug draw the height field) --- src/collision/shapes/HeightFieldShape.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/collision/shapes/HeightFieldShape.h b/src/collision/shapes/HeightFieldShape.h index d8149a9e..e278dbba 100644 --- a/src/collision/shapes/HeightFieldShape.h +++ b/src/collision/shapes/HeightFieldShape.h @@ -161,12 +161,6 @@ class HeightFieldShape : public ConcaveShape { void getTriangleVerticesWithIndexPointer(int32 subPart, int32 triangleIndex, Vector3* outTriangleVertices) const; - /// Return the vertex (local-coordinates) of the height field at a given (x,y) position - Vector3 getVertexAt(int x, int y) const; - - /// Return the height of a given (x,y) point in the height field - decimal getHeightAt(int x, int y) const; - /// Return the closest inside integer grid value of a given floating grid value int computeIntegerGridValue(decimal value) const; @@ -201,6 +195,12 @@ class HeightFieldShape : public ConcaveShape { /// Return the number of columns in the height field int getNbColumns() const; + + /// Return the vertex (local-coordinates) of the height field at a given (x,y) position + Vector3 getVertexAt(int x, int y) const; + + /// Return the height of a given (x,y) point in the height field + decimal getHeightAt(int x, int y) const; /// Return the type of height value in the height field HeightDataType getHeightDataType() const;