Matrix4x4.CreateConstrainedBillboard Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- objectPosition
- Vector3
The position of the object that the billboard will rotate around.
- cameraPosition
- Vector3
The position of the camera.
- rotateAxis
- Vector3
The axis to rotate the billboard around.
- cameraForwardVector
- Vector3
The forward vector of the camera.
- objectForwardVector
- Vector3
The forward vector of the object.
Returns
The billboard matrix.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.