LoginSignup
2
0

More than 3 years have passed since last update.

Unity備忘録 ~Unityちゃんになる~

Posted at

はじめに

この記事は8日前にUnityを触り始めた人の勉強メモです。過度な期待はしないでください。
誤った内容が含まれる可能性が多々あります。誤りに気付いた方は、コメントにて脇腹をつついてください。

雑手順

■床作成
「Hierarchy」で「Create-3D Object-Plane」を選択

■OVRPlayerController配置
「Project」の「Oculus-VR-Prefabs-OVRPlayerController」を「Hierarchy」にドラッグ&ドロップ
「Hierarchy」の「MainCamera」削除

■Oculusトラッキング用オブジェクト作成
「Hierarchy」の「OVRPlayerController-OVRCameraRig-TrackingSpace」に頭、右手、左手用のオブジェクト作成

「OVRPlayerController-OVRCameraRig-TrackingSpace-CenterEyeAnchor」を右クリックし、「Create Empty」を選択
「GameObject」の名称を「HeadTarget」に変更し、選択
「Transform-Rotation」を「X:0、Y:‐110、Z:-60」に修正

「OVRPlayerController-OVRCameraRig-TrackingSpace-LeftHandAnchor-LeftControllerAnchor」を右クリックし、「Create Empty」を選択
「GameObject」の名称を「LeftHandTarget」に変更
「Inspector」の「Transform-Rotation」を「X:0、Y:90、Z:0」に修正

「OVRPlayerController-OVRCameraRig-TrackingSpace-RightHandAnchor-RightControllerAnchor」を右クリックし、「Create Empty」を選択
「GameObject」の名称を「RightHandTarget」に変更
「Inspector」の「Transform-Rotation」を「X:0、Y:90、Z:0」に修正

■Unityちゃん配置
「Project」の「unity-chan!-Unity-chan! Model-Prefabs-unitychan_dynamic」を「Hierarchy」の「OVRPlayerController」にドラッグ&ドロップ

■UnityちゃんにVRIKアタッチ
「Project」の「Plugins-RootMotion-FinalIK-IK Components-VRIK」を「Hierarchy」の「unitychan_dynamic」にドラッグ&ドロップ

「Hierarchy」の「unitychan_dynamic」を選択
「Inspector」の「VRIK(Script)-Solver-Spine-Head Target」に上で作成した「HeadTarget」をドラッグ&ドロップ
「VRIK(Script)-Solver-Left Arm-Target」に上で作成した「LeftHandTarget」をドラッグ&ドロップ
「VRIK(Script)-Solver-Right Arm-Target」に上で作成した「RightHandTarget」をドラッグ&ドロップ
「VRIK(Script)-Solver-Left Leg-Swift Offset」を -70 に設定
「VRIK(Script)-Solver-Right Leg-Swift Offset」を 90 に設定
「VRIK(Script)-Solver-Locomotion-Foot Distance」を 0.1 に設定

■Unityちゃんのモーション関連調整
「Hierarchy」の「unitychan_dynamic」を選択
「Inspector」の「Animator-Controller」に設定されている「UnityChanARPose」を削除
「Inspector」の以下項目のチェックボックスを解除
 ・Idle Changer(Script)
 ・Face Update(Script)
 ・Spring Manager(Script)
 ・Randam Wind(Script)
 ・Auto Blink(Script)

■OVRPlayerControllerのCharacter Controller調整
「Hierarchy」の「OVRPlayerController」を選択
「Inspector」の「Character Controller」の値を以下のように修正
 ・Center Y:0.775
 ・Radius 0.2
 ・Height 1.55

■OVRCameraRigの高さ調整
「Hierarchy」の「OVRPlayerController-OVRCameraRig」を選択
「Inspector」の「Transform」の値を以下のように修正
 ・Posision Y:1.36
 ・Rotation X;15

■固定カメラの設定
「Hierarchy」で「Create-Camera」を選択
「Inspector」の以下項目を変更
 ・Transform-Posision Y:0.85、Z:2.55
 ・Transform-Rotation Y:-180
 ・Camera-Target Eye None(MainDisplay)

疲れたので、一旦ここまで

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0