Viewport
:getRay
機能
3D光線座標の取得
構文
getRay(
mgVector2
,
mgVector3
,
mgVector3
)
引数
mgVector2
2Dスクリーン座標x,y。単位[0.0-1.0]。
mgVector3
光線の始点ワールド位置
mgVector3
光線の方向。
戻り値
mgVector3, mgVector3。光線の始点, 光線の方向は、戻り値としても戻されます。
説明
2Dスクリーン座標を、3D光線座標に変換します。