Skip to content

Commit ae3adb1

Browse files
committed
updated
1 parent 379f853 commit ae3adb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/tutorials/en/intro-to-p5-strands.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function instancingCallback() {
282282
return fract(sin(dot(seed, [12.9898, 78.233])) * 43758.5453123);
283283
}
284284
285-
function sphere() {
285+
function getAnimatedSpherePosition() {
286286
let id = instanceID();
287287
let theta = rand([id, 0.1234]) * TWO_PI;
288288
// change the particle's position over time:
@@ -298,7 +298,7 @@ function sphere() {
298298
}
299299
300300
getWorldInputs((inputs) => {
301-
inputs.position += sphere();
301+
inputs.position += getAnimatedSpherePosition();
302302
return inputs;
303303
});
304304
}

0 commit comments

Comments
 (0)