Will come back to this. Need to first create integral and root finding code, so I can convert the Hubble Flow comoving distance into redshift and then from there I'm able to calculate the perturbation that peculiar velocity has on the redshift space coordinates.
Will come back to this once I have gone through testing the the linear approximation that was used in this visualization is valid. This code used another commented out function that uses the linear approximation found below
Maybe update this code so it just adds a new attribute to the body class versus creating a whole new array. Something similar to this code: "
// // Deep copy the bodies
let copiedBodies = bodies.map(body => new Body(body.mass, {...body.position}, {...body.velocity}), body.radial_velocity);
"