Sdílet prostřednictvím


Matrix4x4.CreateConstrainedBillboard Metoda

Definice

Vytvoří válcový plakát, který se otáčí kolem zadané osy.

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

Parametry

objectPosition
Vector3

Pozice objektu, kolem kterého se otáčí reklamní tabule.

cameraPosition
Vector3

Poloha kamery.

rotateAxis
Vector3

Osa, osu, která má otočit otáčí platformu.

cameraForwardVector
Vector3

Dopředný vektor kamery.

objectForwardVector
Vector3

Dopředný vektor objektu.

Návraty

Matrix matrix.

Platí pro