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

iTestBed::drawShape()

Description

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

Syntax

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

Parameters

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.

Remarks

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.00 - Copyright © 2002-2016 PathEnginenext: iTestBed::drawSplitBoundaries()