Auto-Facing UdonSharp Script for VRChat World|プレイヤー自動追従スクリプト
상품 설명
How to Use
Add LookAtLocalPlayer.cs to any GameObject in your scene.
Adjust options in the Inspector:
Facing Axis – choose which side points toward the player.
Custom Rotation Offset – fine-tune the rotation angle.
Flatten Y / Smooth / Distance Limit – control movement and performance.
Press Play — the object will smoothly rotate toward the player.
⚠️ If your object squashes, stretches, or changes scale when rotating:
Move it out from under any parent object that has non-uniform scale, negative scale, or physics constraints.
These can distort rotation transforms.
To fix it, place the script on a clean parent (scale 1,1,1) and put your visual mesh as its child.
Compatibility
✅ Works with VRChat SDK3 (Worlds) and UdonSharp
✅ Optimized for both VR and Desktop modes
License & Permissions
✅ Free for personal and commercial use
✅ Modification allowed
❌ Redistribution or resale prohibited
Support the Creator
This script is 100% free.
If it helps your project, please consider supporting future tools on Patreon:
🔗 https://www.patreon.com/Axinovium
🇯🇵 Axinovium LookAtLocalPlayer – UdonSharp スクリプト
説明
オブジェクトを自動的にローカルプレイヤーの方向へ回転させる軽量なUdonSharpスクリプトです。
看板、キャラクター、インタラクティブな小物などに最適です。
使い方
シーン内の任意のGameObjectに LookAtLocalPlayer.cs を追加します。
Inspectorで設定を調整します:
Facing Axis – プレイヤーに向けたい軸を選択
Custom Rotation Offset – 角度を微調整
Flatten Y / Smooth / Distance Limit – 動きやパフォーマンスを制御
再生ボタンを押すと、オブジェクトがプレイヤーの方を向くようになります。
⚠️ 回転時にオブジェクトがつぶれたりスケールが変化する場合:
非均一スケール(x, y, zが異なる)や負のスケール、物理特性を持つ親オブジェクトの下にあることが原因です。
スクリプトをスケール(1,1,1)のクリーンな親に移動し、ビジュアル用メッシュを子オブジェクトとして配置してください。
対応環境
✅ VRChat SDK3 (Worlds) および UdonSharp に対応
✅ VR・デスクトップ両モードで最適化済み
ライセンスと利用規約
✅ 無料で使用可能(個人・商用どちらもOK)
✅ 改変自由
❌ 再配布・転売は禁止
クリエイターをサポート
このスクリプトは完全無料です。
もし役に立ったと感じたら、Patreonでのサポートをご検討ください。
모든 리뷰
더보기리뷰 등록
리뷰를 작성하려면 로그인이 필요합니다.
로그인하고 리뷰 쓰기