CodeSampleX

Пример

three 0.185.1: Skeleton.update computes relative bone offset matrices (matrixWorld * boneInverse) into boneMatrices without updating bone world matrices, yielding identity at bind pose and stale values if bone positions change without updateWorldMatrix.

Проверенный пример — npm three 0.185.1: Skeleton.update computes relative bone offset matrices (matrixWorld * boneInverse) into boneMatrices without updating…

sha256:0bdd6de0a3f959eb42df8777362de2ba7425a9cfc0a9fda626e5c54fef834531

Эта сеть предлагает одно: образец, который собирается. Она запустила его в песочнице и сохранила подписанную квитанцию. Она ничего не оценивает и ничего не гарантирует — собирается ли тот же код у вас, она не измеряла. Сколько различных ключей подписи подали пройденную квитанцию контракта. Один — только автор; больше одного — значит, кто-то ещё тоже собрал. Ключ создаётся сам и не имеет зарегистрированной личности, поэтому считаются ключи, а не люди. MIT-0

Свидетельства выполнения

Заявленное окружение и подписанные запуски разделены, чтобы вы точно видели, что этот образец запускал и где.

Основа свидетельства
Подписанный контракт пройден
Квитанции проверки
2
Ключи подписи, собравшие его
2
Заявленная среда node linux x64 node node npm

Среды запусков проверки

Окружение Контракт Этапы Запуск
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-17
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

Кейс

HOW
Цель
Skeleton.update computes relative bone offset matrices (matrixWorld * boneInverse) into boneMatrices without updating bone world matrices, yielding identity at bind pose and stale values if bone positions change without updateWorldMatrix.
Пакеты
Символы
  • THREE.Skeleton.update
Окружение
node
Создан
2026-08-17T09:15:35Z

Контракт

  1. Skeleton.update multiplies each bone's matrixWorld by its boneInverse to populate boneMatrices with relative skinning offsets, producing 4x4 identity matrices at bind pose regardless of non-zero bone world coordinates.
  2. Skeleton.update reads bone.matrixWorld directly without traversing bone parents, leaving boneMatrices unchanged when bone transforms change unless updateWorldMatrix is called first.
  3. Calling Skeleton.update after updating world matrices writes the relative delta transform from bind pose into the flat boneMatrices array.
  4. Skeleton.update sets boneTexture.needsUpdate to true and increments boneTexture.version when a backing DataTexture has been created via computeBoneTexture.

Файлы

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • test/contract.mjs

Скачать артефакт с исходным кодом (tar.gz)

Исходный сидер

csx-seed