Skip to content

Commit

Permalink
Replace object:getyaw() (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Jan 6, 2025
1 parent cd76d7f commit 71a2b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function boat:on_step(dtime)
if y < 0 then
self.object:set_acceleration({x=0, y=10, z=0})
end
self.object:set_velocity(get_velocity(self.v, self.object:getyaw(), y))
self.object:set_velocity(get_velocity(self.v, self.object:get_yaw(), y))
else
self.object:set_acceleration({x=0, y=0, z=0})
if math.abs(self.object:get_velocity().y) < 1 then
Expand Down

0 comments on commit 71a2b0e

Please sign in to comment.