PathEngine home previous: iTestBed::drawRenderPreprocessAtPosition()next: iTestBed::drawSplitBoundaries()
Contents, API Reference, Interfaces, iTestBed, drawShape



Draws a polygonal object to represent an object with the specified collision shape on the testbed's current mesh.


void drawShape(const iShape* shape, const cPosition& position, int32_t height);


shape The object will be drawn with this shape.
position The object will be drawn at this position.
This position must be a valid position on the currently set mesh.
height Specifies how tall to make the object.


The shape is drawn as a prism constructed by extruding the collision shape vertically by height.

If there is no currently set mesh then this function returns with no effect.

The shape will be drawn in the testbed's current colour.

See Also

iTestBed::setColour(), iTestBed::setColourRGB(), iTestBed::drawAgent()
Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iTestBed::drawSplitBoundaries()