Difference between revisions of "Axis Angle (LogiX node)/ja"
Jump to navigation
Jump to search
(Created page with "このノードを使用して、任意の軸に関する回転をクォターニオンに変換し、その後の計算で使用したり、オブジェクトの回転入力...") |
(Created page with "== 例 ==") |
||
Line 14: | Line 14: | ||
このノードを使用して、任意の軸に関する回転をクォターニオンに変換し、その後の計算で使用したり、オブジェクトの回転入力として使用することができます。 | このノードを使用して、任意の軸に関する回転をクォターニオンに変換し、その後の計算で使用したり、オブジェクトの回転入力として使用することができます。 | ||
− | == | + | == 例 == |
Here we have a door with a Door Pivot child placed on the hinge side of the door. We can drive the Door Pivot object's Rotation property (a quaternion) with the Axis Angle node's output (also a quaternion). We specify rotation about the Y axis (the green axis), and 0 degrees of rotation: | Here we have a door with a Door Pivot child placed on the hinge side of the door. We can drive the Door Pivot object's Rotation property (a quaternion) with the Axis Angle node's output (also a quaternion). We specify rotation about the Y axis (the green axis), and 0 degrees of rotation: |
Revision as of 11:48, 13 February 2022
Axis Angle | ||
---|---|---|
Inputs | ||
Float3 | Axis | |
Float | Angle | |
Outputs | ||
FloatQ | * |
Axis AngleLogiX ノードは axis-angle として表現された rotation をネイティブの クォターニオン 表現に変換するものである。最初の入力は回転させる軸で、2番目の入力は軸を中心に時計回り(正)または反時計回り(負)に回転させる角度を度単位で指定します。
使用方法
このノードを使用して、任意の軸に関する回転をクォターニオンに変換し、その後の計算で使用したり、オブジェクトの回転入力として使用することができます。
例
Here we have a door with a Door Pivot child placed on the hinge side of the door. We can drive the Door Pivot object's Rotation property (a quaternion) with the Axis Angle node's output (also a quaternion). We specify rotation about the Y axis (the green axis), and 0 degrees of rotation:
By changing the rotation amount to -60 degrees, we rotate the object 60 degrees counterclockwise.