npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

com.hidano.magicacloth2-collider-setup

v0.1.0

Published

Automatically generates MagicaCloth2 colliders from Humanoid avatar bone structure and skinned mesh vertex weights using table-driven definitions and PCA axis detection.

Readme

MagicaCloth2 Collider Setup

HumanoidアバターのSkinnedMeshRenderer頂点ウェイトとボーン構造から、MagicaCloth2用のコライダー(Capsule / Sphere)を自動生成するUnity Editorツールです。

動作要件

  • Unity 6000.0 以降
  • MagicaCloth2 がプロジェクトに導入済みであること

インストール

Unity Package Manager の Add package from git URL で以下を指定してください:

https://github.com/Hidano/MagicaCloth2ColliderSetup.git?path=MagicaCloth2ColliderSetup/Packages/com.hidano.magicacloth2-collider-setup

または Packages/manifest.json に直接追加:

"com.hidano.magicacloth2-collider-setup": "https://github.com/Hidano/MagicaCloth2ColliderSetup.git?path=MagicaCloth2ColliderSetup/Packages/com.hidano.magicacloth2-collider-setup"

使い方

  1. Tools > Hidano > MagicaCloth2 Collider Setup からウィンドウを開く
  2. ターゲット にHumanoid Animatorを持つGameObjectを設定
  3. 「SMR一覧を取得」 を押し、身体を構成するメッシュにチェックを入れる(装飾・アクセサリは除外)
    • Sceneビューからクリックで選択/解除も可能
  4. 必要に応じてパラメータを調整
  5. 「マルチコライダーを生成」 を実行

パラメータ

| パラメータ | 説明 | デフォルト | |---|---|---| | 半径スケール | 生成されるコライダー半径の倍率 | 1.0 | | 最小半径 | コライダー半径の下限値 | 0.005 | | ウェイト閾値 | この値未満のウェイトを持つ頂点を無視 | 0.1 | | 手 / 足 / 指 | 各部位のコライダー生成を切り替え | 手・足: ON, 指: OFF | | 既存のColliderを削除 | 生成前に既存の自動生成コライダーを削除 | ON | | MagicaClothに自動登録 | 生成したコライダーをMagicaClothコンポーネントに登録 | ON | | 最小頂点数 | この頂点数未満のボーンはバウンディングボックスにフォールバック | 20 | | 非表示メッシュも含める | 非アクティブなSkinnedMeshRendererも一覧に表示 | OFF |

形状近似の仕組み

  • テーブル駆動: Humanoidボーン定義テーブルに基づき、各ボーンの形状(Capsule/Sphere)・テーパー有無などを決定
  • PCA軸検出: Hips・Chest・UpperChestなど体幹ボーンでは主成分分析(PCA)で最大分散方向を検出し、カプセルの長軸とする
  • パーセンタイルフィルタ: 外れ値頂点を除外して安定したサイズ推定を実現
  • テーパーカプセル: 腕・脚のボーンでは始端/終端で異なる半径を設定

ライセンス

MIT License