Table of Contents

Method DrawShape

Namespace
Box3D
Assembly
Box3D.NET.dll

DrawShape(nint, Vector3, Quaternion, DebugColor)

Draws a drawable built earlier by the shape factory.

void DrawShape(nint handle, Vector3 position, Quaternion rotation, DebugColor color)

Parameters

handle nint

The handle returned by Box3D.IDebugShapeFactory.CreateShape(Box3D.DebugShape@).

position Vector3

Where the shape is, in world space.

rotation Quaternion

The shape's orientation.

color DebugColor

The suggested colour.

Remarks

Only called when the world was built with an Box3D.IDebugShapeFactory and Box3D.DebugDrawOptions.DrawShapes is set. A drawer that has no factory can leave this empty.