Matrix4x4.CreateConstrainedBillboard(Vector3, Vector3, Vector3, Vector3, Vector3) Método

Definição

Cria um mural cilíndrico que gira em torno de um eixo especificado.Creates a cylindrical billboard that rotates around a specified axis.

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

Parâmetros

objectPosition
Vector3

A posição do objeto em torno do qual o mural girará.The position of the object that the billboard will rotate around.

cameraPosition
Vector3

A posição da câmera.The position of the camera.

rotateAxis
Vector3

O eixo em torno do qual girar o mural.The axis to rotate the billboard around.

cameraForwardVector
Vector3

O vetor de encaminhamento da câmera.The forward vector of the camera.

objectForwardVector
Vector3

O vetor de avanço do objeto.The forward vector of the object.

Retornos

A matriz do mural.The billboard matrix.

Aplica-se a