共用方式為


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

物件的前向量。

傳回

告示板矩陣。

適用於