Skip to content

Commit

Permalink
use sprite_set_velocity instead of sprite_set_speed
Browse files Browse the repository at this point in the history
  • Loading branch information
matt439 committed Jan 21, 2025
1 parent 34bfca5 commit 627e5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coresdk/src/test/unit_tests/unit_test_sprites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ TEST_CASE("sprite heading can be set and retrieved", "[sprite]")
}
SECTION("can set sprite heading")
{
sprite_set_speed(sprt, 10.0f);
sprite_set_velocity(sprt, vector_to(10.0, 0.0));
sprite_set_heading(sprt, 0.0f);
REQUIRE(sprite_heading(sprt) == 0.0f);
sprite_set_heading(sprt, 180.0f);
Expand Down

0 comments on commit 627e5ec

Please sign in to comment.