Skip to content

Commit 02fdd42

Browse files
author
Björn Ritzl
committed
Fixed issue in kinematic.look_at() when id is provided
1 parent 43e63b5 commit 02fdd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ludobits/m/kinematic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function M.look_at(look_at_position, id)
2525
local pos = go.get_world_position(id)
2626
local target_angle = -math.atan2(look_at_position.x - pos.x, look_at_position.y - pos.y)
2727
local target_quat = vmath.quat_rotation_z(target_angle)
28-
go.set_rotation(target_quat)
28+
go.set_rotation(target_quat, id)
2929
end
3030

3131
--- Rotate around the z-axis

0 commit comments

Comments
 (0)