mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix spectator shield being wrong
This commit is contained in:
parent
95d620a920
commit
4161929e72
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ function module.on_world_update()
|
|||
spectating_which.set(ctx.spectating_over_peer_id)
|
||||
if GameGetFrameNum() % 6 == 3 then
|
||||
local x,y = DEBUG_GetMouseWorld()
|
||||
local cx, cy = GameGetCameraPos()
|
||||
local cx, cy = EntityGetTransform(ctx.players[ctx.spectating_over_peer_id].entity)
|
||||
local dx, dy = x - cx, y - cy
|
||||
local angle = math.atan2(dy, dx)
|
||||
shield_angle.set(angle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue