Bagikan melalui


Matrix4x4.CreateConstrainedBillboard Metode

Definisi

Membuat billboard silikondris yang berputar di sekitar sumbu tertentu.

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

Parameter

objectPosition
Vector3

Posisi objek yang akan diputar billboard.

cameraPosition
Vector3

Posisi kamera.

rotateAxis
Vector3

Sumbu untuk memutar papan iklan.

cameraForwardVector
Vector3

Vektor depan kamera.

objectForwardVector
Vector3

Vektor depan objek.

Mengembalikan

Matriks papan iklan.

Berlaku untuk