Methods
# drawAlerts(alerts, yOffset)
Draw performance alerts
Parameters:
Name | Type | Description |
---|---|---|
alerts |
Array
|
Array of alert objects |
yOffset |
number
|
Y offset for positioning |
# drawBounds(bounds)
Draw boundary boxes
Parameters:
Name | Type | Description |
---|---|---|
bounds |
Array
|
Array of boundary objects |
# drawForces(forces)
Draw force vectors
Parameters:
Name | Type | Description |
---|---|---|
forces |
Array
|
Array of force objects |
# drawText(text, x, y)
Draw text with outline
Parameters:
Name | Type | Description |
---|---|---|
text |
string
|
Text to draw |
x |
number
|
X position |
y |
number
|
Y position |
# render(debugData)
Render debug information
Parameters:
Name | Type | Description |
---|---|---|
debugData |
Object
|
Debug data to display |
# toggle(feature)
Toggle debug features
Parameters:
Name | Type | Description |
---|---|---|
feature |
string
|
Feature to toggle |