Anatomography map API configuration
ObjectRotate configuration category
パーツの回転角度、回転中心、回転軸など、パーツ群の回転に関するconfiguration parameter群を設定します。
Configuration parameter
"ObjectRotate" categoryには以下のパラメータが存在します。
| Configuration category |
デフォルト値 |
説明 |
指定可能な値 |
| "ObjectRotate":{ |
|
|
パラメータの連想配列 |
| "RotateDegree": |
0 |
回転角度 |
任意の数値 |
| "RotateCenterX": |
0 |
回転中心のX座標 |
任意の数値 |
| "RotateCenterY": |
0 |
回転中心のY座標 |
任意の数値 |
| "RotateCenterZ": |
0 |
回転中心のZ座標 |
任意の数値 |
| "RotateAxisVectorX": |
0 |
回転軸ベクトルのX要素 |
任意の数値 |
| "RotateAxisVectorY": |
0 |
回転軸ベクトルのY要素 |
任意の数値 |
| "RotateAxisVectorZ": |
1 |
回転軸ベクトルのZ要素 |
任意の数値 |
| } |
|
|
|
パラメータの使用例
Y軸にそって90度回転させる
カメラの回転では実現できない回転、例えばY軸に沿って30度回転させた画像は、下記のようにconfiguration parameterを設定することで描画可能です。
この例では回転中心をデフォルト値(0,0,0)としているので足元を中心に回転しています。体の中央近辺を中心に回転したい場合、回転中心を(0,0,800)程度に指定します。