Path along line
in
Contributed Library Questions
•
7 months ago
Hey everyone,
Ive got this PShape
which i have made by adding vertices
What im trying to achieve is to get all the coords along the line
This is basically what i want
But my
problem is i don't want something to travel along those swirls i want it to travel along my parallel lines.
This is where the swirls are defined
-
ArrayList points = new ArrayList();
for (float theta=-TWO_PI, r=100; theta<8*TWO_PI; theta+=QUARTER_PI) {
Vec3D p=Vec3D.fromXYTheta(theta).scale(r).add(200,0,0).rotateY(theta/9);
points.add(p);
}
I have edited it to this
-
for (float theta=-TWO_PI, r=0; theta<8*TWO_PI; theta+=QUARTER_PI) {
Vec3D p=Vec3D.fromXYTheta(theta).scale(r).add(200,0,0).rotateY(theta/30);
points.add(p);
So how would i instead of the circle or swirls
make it into those parallel lines
or replace those swirls with the parallel lines
it doesn't need to be PShape
Thankyou!
1