Skip to content

Commit

Permalink
Remove M_PI sub
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravpandya committed May 2, 2024
1 parent 2388548 commit 9296cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/level_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static inline Entity createAgent(Engine &ctx, const MapObject &agentInit) {
{
trajectory.positions[i] = Vector2{.x = agentInit.position[i].x - ctx.data().mean.x + length, .y = agentInit.position[i].y - ctx.data().mean.y + width};
trajectory.velocities[i] = Vector2{.x = agentInit.velocity[i].x, .y = agentInit.velocity[i].y};
trajectory.headings[i] = toRadians(agentInit.heading[i]) - M_PI_2;
trajectory.headings[i] = toRadians(agentInit.heading[i]);
trajectory.valids[i] = agentInit.valid[i];
}

Expand Down

0 comments on commit 9296cd8

Please sign in to comment.