We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e63b5 commit 02fdd42Copy full SHA for 02fdd42
ludobits/m/kinematic.lua
@@ -25,7 +25,7 @@ function M.look_at(look_at_position, id)
25
local pos = go.get_world_position(id)
26
local target_angle = -math.atan2(look_at_position.x - pos.x, look_at_position.y - pos.y)
27
local target_quat = vmath.quat_rotation_z(target_angle)
28
- go.set_rotation(target_quat)
+ go.set_rotation(target_quat, id)
29
end
30
31
--- Rotate around the z-axis
0 commit comments