- Timestamp:
- 2014-12-08T13:25:38+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/render-3d/Flag_files/Flag.js
r29475 r29547 341 341 ballPosition.x = Math.cos(Date.now()/200) * 70 342 342 343 if (sphere.visible)344 for (particles = cloth.particles, i=0, il = particles.length345 ;i<il;i++) {346 particle = particles[i];347 pos = particle.position;348 diff.subVectors(pos, ballPosition);349 if (diff.length() < ballSize) {350 // collided351 diff.normalize().multiplyScalar(ballSize);352 pos.copy(ballPosition).add(diff);353 }354 }355 356 343 // Pin Constrains 357 344 if(Boolean(pinning)){
Note:
See TracChangeset
for help on using the changeset viewer.