We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379f853 commit ae3adb1Copy full SHA for ae3adb1
1 file changed
src/content/tutorials/en/intro-to-p5-strands.mdx
@@ -282,7 +282,7 @@ function instancingCallback() {
282
return fract(sin(dot(seed, [12.9898, 78.233])) * 43758.5453123);
283
}
284
285
-function sphere() {
+function getAnimatedSpherePosition() {
286
let id = instanceID();
287
let theta = rand([id, 0.1234]) * TWO_PI;
288
// change the particle's position over time:
@@ -298,7 +298,7 @@ function sphere() {
298
299
300
getWorldInputs((inputs) => {
301
- inputs.position += sphere();
+ inputs.position += getAnimatedSpherePosition();
302
return inputs;
303
});
304
0 commit comments