It is like back to the high school physics nightmare 😥
If you move your mouse on the right side of the canvas, the incline will move with it. The box will move according to the incline and friction.
What I haven’t figured out yet:
- How does Vector.rotate work in DEGREE angleMode…
- As you can see for now, every time you move the mouse, the velocity will change to (0, 0) directly because I couldn’t figure out how to project a vector on another
I also played with polar roses with the particle system I built last week: having one attractor moving along the polar roses. And here is what I came up with.