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
handlenint-
The handle returned by Box3D.IDebugShapeFactory.CreateShape(Box3D.DebugShape@).
positionVector3-
Where the shape is, in world space.
rotationQuaternion-
The shape's orientation.
colorDebugColor-
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.