Skip to content

Commit

Permalink
add: normalize facing
Browse files Browse the repository at this point in the history
  • Loading branch information
panda2134 committed Mar 26, 2021
1 parent 6fdd4c4 commit 4baf855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_record_sdk/entities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace thuai {
}

void Entity::set_facing(Vec2D new_facing) {
this->m_facing = new_facing;
this->m_facing = new_facing.normalized();
}

Vec2D Entity::facing(void) const {
Expand Down

0 comments on commit 4baf855

Please sign in to comment.