QvPen Avatar Follow System
QvPen で描いた線が,アバターについてくる.
Lines drawn with QvPen follow the avatar.
VRChat ワールド向けの QvPen 拡張ギミックです.アバターの近くで描いた線(文字や落書き)を,そのアバターの最寄りのボーンに追従させ,全プレイヤーへ同期します.Prefab を 1 個置くだけで動作します.
A QvPen extension for VRChat worlds. Lines (writing, doodles) drawn near an avatar attach to that avatar's nearest bone and are synced to all players. Just place one prefab in your scene.
ボタンが反応しない場合は,以下の URL を VCC / ALCOM の「Add Repository」に貼り付けてください.
If the button does nothing, paste this URL into "Add Repository" in VCC / ALCOM.
特徴Features
- アバターに追従 ボーンの近くで描き終えた線が,そのボーンと一緒に動きます.顔や腕への落書き,背中へのメッセージなどに. Follows avatars A line finished near a bone moves with that bone. Doodle on faces and arms, or leave a message on someone's back.
- 全員に同期 追従の状態は全プレイヤーへ同期され,後から入ってきた人にも同じように見えます. Synced for everyone The attachment is synced to all players, including those who join later.
- 置くだけで動作 QvPen の生成物を実行時に自動検出します.QvPen 側の設定変更や参照の割り当ては不要です. Drop-in QvPen's objects are detected at runtime. No changes to QvPen and no references to assign.
導入前に サンプルワールド で実際の動作を試せます.
You can try it in the sample world before installing.
導入方法Installation
必要なものRequirements
- VRChat SDK - Worlds 3.5.0 以降 (Unity 2022.3)
- QvPen — 本ギミックには含まれません.先にワールドへ導入しておいてください.
- VRChat SDK - Worlds 3.5.0 or later (Unity 2022.3)
- QvPen — not included. Install it into your world first.
VCC で導入するInstall with VCC
- QvPen をワールドに導入し,ペンで描ける状態にしておきます.
- 上の 「VCC に追加」 ボタンを押し,開いた VCC で I Understand, Add Repository を選びます.
- VCC でワールドのプロジェクトの Manage Project を開き,QvPen Avatar Follow System の「+」を押して追加します.
- Unity でプロジェクトを開き,
Packages/QvPen Avatar Follow System/PrefabにあるQvPen_AvatarFollowSystem.prefabを Hierarchy にドラッグ&ドロップします. - ワールドをビルド / アップロードします.
- Install QvPen into your world and make sure you can draw with a pen.
- Press "Add to VCC" above, and choose I Understand, Add Repository in VCC.
- In VCC, open Manage Project for your world project and press "+" next to QvPen Avatar Follow System.
- Open the project in Unity and drag
QvPen_AvatarFollowSystem.prefabfromPackages/QvPen Avatar Follow System/Prefabinto the Hierarchy. - Build / upload your world.
Prefab はシーンに 1 個だけ 配置し,常に有効にしておいてください(実行中に無効化しない).配置場所はどこでも構いません.
Place exactly one instance in the scene and keep it active at all times. It can be placed anywhere.
Booth 版(unitypackage)から移行するMigrating from the Booth unitypackage
VCC から追加すると,unitypackage で導入した Assets/TateshinaSystems/QvPen_AvatarFollowSystem フォルダは自動で削除され,パッケージ版に置き換わります.シーンに配置済みの Prefab と設定値はそのまま引き継がれます.スクリプトを改変している場合は,事前にバックアップを取ってください.
Adding the package through VCC removes the Assets/TateshinaSystems/QvPen_AvatarFollowSystem folder imported from the unitypackage and replaces it with the package. Prefabs already placed in your scenes keep working with their settings. If you modified the script, back it up first.
VCC を使わずに導入するInstalling without VCC
Booth から unitypackage を入手し,プロジェクトへインポートしてください.以降の手順は同じです.
Get the unitypackage from Booth and import it into your project. The remaining steps are the same.
設定項目Settings
原則,初期設定のまま変更する必要はありません.
The defaults work for most worlds.
| 項目Field | 既定値Default | 説明Description |
|---|---|---|
| Attach Distance | 0.2 | ボーンからこの距離(m)以内に描き終えた線が追従対象になります.大きいほど付きやすくなります. A line finished within this distance (m) of a bone attaches to it. Larger values attach more easily. |
| Include Local Player | ON | 描いた本人のボーンも追従対象に含めるかどうか. Whether the drawer's own bones are also attach targets. |
| Max Records | 511 | 同時に追従できる最大本数.超えると古いものから切り離します.1 本あたり 72 byte の同期帯域を使うため,VRChat の同期上限(約 49KB)に収まる 680 本程度までが目安です. Maximum number of lines attached at once; the oldest are detached beyond it. Each line uses 72 bytes of sync data, so about 680 is the practical maximum under VRChat's sync limit (about 49 KB). |
制限事項Limitations
- 追従できるのはヒューマノイドのボーンのみです.
- 非ヒューマノイドアバターや,服・髪・しっぽ・装飾などには追従できません(VRChat の仕様上,ワールドからはアバターのメッシュや追加ボーンを取得できないため).
- アバターが高速で移動・回転している最中に描くと,同期が各クライアントへ届くまでの移動ぶん,線が少しずれて貼り付く場合があります.
- Only humanoid bones can be followed.
- Non-humanoid avatars, and clothes, hair, tails or accessories cannot be followed (a world cannot access an avatar's mesh or additional bones).
- If you draw while an avatar is moving or turning quickly, the line may attach slightly offset, by the distance the avatar moved before the sync reached each client.