Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mplot/NavMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ namespace mplot
// Compute the reorientation due to the requested movement.
float rotn_angle = 0.0f;
// Rotate by the angle between the normals (if stabilised is false). I think this is constrained to be <= pi
if (stabilised == false) { this->tn0.angle (_tn, cd.tri_edge); }
if (stabilised == false) { rotn_angle = this->tn0.angle (_tn, cd.tri_edge); }
// If tn0 and _tn are identical, then rotn_angle will be NaN, but in that case we want no rotation
if (std::isnan (rotn_angle)) { rotn_angle = 0.0f; }
sm::mat<float, 4> reorient_model; // reorientation transformation in sf
Expand Down
Loading