Matrix4x4.CreateConstrainedBillboard 方法

定义

创建围绕指定轴旋转的圆柱宣传位置。

public:
 static System::Numerics::Matrix4x4 CreateConstrainedBillboard(System::Numerics::Vector3 objectPosition, System::Numerics::Vector3 cameraPosition, System::Numerics::Vector3 rotateAxis, System::Numerics::Vector3 cameraForwardVector, System::Numerics::Vector3 objectForwardVector);
public static System.Numerics.Matrix4x4 CreateConstrainedBillboard (System.Numerics.Vector3 objectPosition, System.Numerics.Vector3 cameraPosition, System.Numerics.Vector3 rotateAxis, System.Numerics.Vector3 cameraForwardVector, System.Numerics.Vector3 objectForwardVector);
static member CreateConstrainedBillboard : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Matrix4x4
Public Shared Function CreateConstrainedBillboard (objectPosition As Vector3, cameraPosition As Vector3, rotateAxis As Vector3, cameraForwardVector As Vector3, objectForwardVector As Vector3) As Matrix4x4

参数

objectPosition
Vector3

宣传位置将围绕其旋转的对象的位置。

cameraPosition
Vector3

照相机的位置。

rotateAxis
Vector3

要宣传位置要围绕其旋转的轴。

cameraForwardVector
Vector3

照相机的向前向量。

objectForwardVector
Vector3

对象的向前向量。

返回

宣传位置矩阵。

适用于