I've been experimenting with using directional rotation plugins in combination with pixi.js plugins.
Unfortunately, I'm encountering some issues. If you check out the codepen link: https://codepen.io/asiankingofwhales/pen/RyNKBR?editors=0010, you'll see that I've tried three different approaches:
1. directly adding "_cw" doesn't seem to work
2. using the directional rotation plugin without the pixi.js plugin results in erratic spinning
3. combining the directional rotation plugin with the pixi plugin doesn't produce any rotations at all.
Can someone provide assistance?
If it's not feasible yet, can someone offer guidance on how to achieve directional rotations with pixi.js?
This is a simplified version of a project I'm currently working on: https://codepen.io/asiankingofwhales/pen/JvoWYY?editors=0010. Essentially, I have an object that rotates continuously, but at one point, I want to rotate it to a specific angle. The challenge is that I want all rotations to be clockwise, which seems impossible right now.
I attempted to retrieve the current rotation values, calculate the difference between the current and target values, and then use "=+" for clockwise rotation. However, it appears that the value I'm accessing is always outdated.
Because the rectangle is constantly rotating, the rotation value I obtain may already be changing by the time I use it for calculations. Am I mistaken?
Are there any other solutions to this issue?