start gizmo

This commit is contained in:
mischa 2024-04-26 22:35:29 +08:00
parent 92ce7beb5d
commit adfb30a6d2

View File

@ -437,6 +437,12 @@ private void OnDrawGizmos()
// show the latest blending end position guess
if (state == ForecastState.BLENDING)
{
// show blending start position.
// helps debug the initial jump from prediction to blending.
Gizmos.color = predictingColor;
Gizmos.DrawWireCube(predictionEndPosition, bounds.size);
// show current estimate
if (followingStartPositionEstimate.HasValue)
{
Gizmos.color = blendingGuessColor;