fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
46 stars 22 forks source link

[BUG] - rotateTowards offset applies offset to source instead of target #266

Open Codas opened 1 month ago

Codas commented 1 month ago

rotateTowards seem to apply the given offset (x and y values) to the source instead of the target as I would expect it.

rotateTowards without an offset seems to work as expected. This is the code for the reference image (blue energy beam)

new Sequence()
    .effect()
    .file("jb2a.energy_beam.normal.bluepink.03")
    .atLocation({ x: 1500, y: 2000 })
    .rotateTowards({ x: 1800, y: 2000 })
    .play();

rotateTowards with given offset (dark purple beam)


// rotation with offset
new Sequence()
    .effect()
    .file("jb2a.energy_beam.normal.dark_purplered.03")
    .atLocation({ x: 1500, y: 2000 })
    .rotateTowards({ x: 1800, y: 2000 }, { offset: {y: 100, x: 300 } })
    .play();
Bildschirmfoto 2024-07-15 um 20 41 37