Skip to content

Commit 2a5b484

Browse files
committed
pre-commit
1 parent 36df8fd commit 2a5b484

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

pufferlib/ocean/drive/drive.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,17 +2789,18 @@ void draw_agent_obs(Drive *env, int agent_index, int mode, int obs_only, int las
27892789

27902790
if (mode == 0) {
27912791
DrawSphere((Vector3){goal_x, goal_y, goal_z}, 0.5f, LIGHTGREEN);
2792-
DrawCircle3D((Vector3){goal_x, goal_y, goal_z}, env->agents[active_idx].reward_coefs[REWARD_COEF_GOAL_RADIUS], (Vector3){0, 0, 1}, 90.0f,
2793-
Fade(LIGHTGREEN, 0.3f));
2792+
DrawCircle3D((Vector3){goal_x, goal_y, goal_z}, env->agents[active_idx].reward_coefs[REWARD_COEF_GOAL_RADIUS],
2793+
(Vector3){0, 0, 1}, 90.0f, Fade(LIGHTGREEN, 0.3f));
27942794
}
27952795

27962796
if (mode == 1) {
27972797
float goal_x_world = px + (goal_x * heading_self_x - goal_y * heading_self_y);
27982798
float goal_y_world = py + (goal_x * heading_self_y + goal_y * heading_self_x);
27992799
float goal_z_world = pz + goal_z;
28002800
DrawSphere((Vector3){goal_x_world, goal_y_world, goal_z_world}, 0.5f, LIGHTGREEN);
2801-
DrawCircle3D((Vector3){goal_x_world, goal_y_world, goal_z_world}, env->agents[active_idx].reward_coefs[REWARD_COEF_GOAL_RADIUS],
2802-
(Vector3){0, 0, 1}, 90.0f, Fade(LIGHTGREEN, 0.3f));
2801+
DrawCircle3D((Vector3){goal_x_world, goal_y_world, goal_z_world},
2802+
env->agents[active_idx].reward_coefs[REWARD_COEF_GOAL_RADIUS], (Vector3){0, 0, 1}, 90.0f,
2803+
Fade(LIGHTGREEN, 0.3f));
28032804
}
28042805
// First draw other agent observations
28052806
int obs_idx = ego_dim; // Start after ego obs

0 commit comments

Comments
 (0)