Skip to content

Commit

Permalink
updated initial rotation of particles so that D3 particles rotate cor…
Browse files Browse the repository at this point in the history
…rectly now
  • Loading branch information
benjym committed Nov 20, 2023
1 parent bde0975 commit 9007f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/SphereHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export async function add_spheres(S, params, scene) {
}
else {
geometrySphere = new THREE.SphereGeometry(0.5, Math.pow(2, params.quality), Math.pow(2, params.quality));
geometrySphere.applyMatrix4(new THREE.Matrix4().makeRotationY(Math.PI/2.)); // rotate the geometry to make the forces point in the right direction
}

for (let i = 0; i < params.N; i++) {
Expand Down
1 change: 1 addition & 0 deletions src/inclined-plane.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export let params = {
target_stress: 1e6,
unloading_stress: 100,
lut: 'Size',
// lut: 'None',
quality: 5,
vmax: 1, // max velocity to colour by
omegamax: 20, // max rotation rate to colour by
Expand Down

0 comments on commit 9007f01

Please sign in to comment.