夜風のMixedReality

xRと出会って変わった人生と出会った技術を書き残すためのGeekなHoloRangerの居場所

Elastic System Examples ~MixedRealityToolkitExamplesを触ってみる。 その② Transration Elastic

本日はMRTKのサンプルの調査枠です。

昨日に引き続き[Elastic System Examples]を見ていきます。

〇Elastic System Examplesとは?

MRTKでばねのような動きや弾性を行う物理シュミュレーションを提供するサンプルです。

昨日の記事では[Elastic System Examples]のシーン構造とElastic Systemを機能している[Elastic Manager]コンポーネントの[Transration Elastic]のパラメータを見ていきました。

redhologerbera.hatenablog.com

本日は[Transration Elastic Extent]を見ていきます。

・Tansration Elastic Extent

f:id:Holomoto-Sumire:20201028110417j:plain

・Stretch Bounds(伸縮境界線)

[Center],[Extent]とそれぞれベクトルとしてのパラメータが用意されています。

f:id:Holomoto-Sumire:20201028111702j:plain

[Center]はBoundsの中心点、[Extent]は範囲を設定します。

f:id:Holomoto-Sumire:20201027190229g:plain
Center,Extent=0,0,0

f:id:Holomoto-Sumire:20201028220732g:plain
Extent =1,1,1

・Use Bounds

f:id:Holomoto-Sumire:20201028111725j:plain

設定されている[Bounds]を使用するかどうかの設定です。

[Bounds]はこの設定にチェックを入れていないと使用することはできません。

・SnapPoints

f:id:Holomoto-Sumire:20201028111746j:plain

システムがスナップを検知する範囲内のポイント数と位置を指定します。。

f:id:Holomoto-Sumire:20201028222130g:plain
Snap Point = 0,0,0  

0にすることで触った瞬間スプリングが作動します。

・Repeat Snap Points

[SnapPoint]を繰り返すかどうか?を指定します。

f:id:Holomoto-Sumire:20201028111812j:plain

・Snap Radius

f:id:Holomoto-Sumire:20201028111828j:plain

スプリングを強制的に開始する距離に当たります。

以上でElastic Managerコンポーネントのざっくりとした理解ができました。 次からはサンプル内でどのような表現ができるかを学んでいきます。