Matrix4x4.CreateBillboard(Vector3, Vector3, Vector3, Vector3) メソッド

定義

オブジェクトの指定位置を中心に回転する球ビルボードを作成します。Creates a spherical billboard that rotates around a specified object position.

public:
 static System::Numerics::Matrix4x4 CreateBillboard(System::Numerics::Vector3 objectPosition, System::Numerics::Vector3 cameraPosition, System::Numerics::Vector3 cameraUpVector, System::Numerics::Vector3 cameraForwardVector);
public static System.Numerics.Matrix4x4 CreateBillboard (System.Numerics.Vector3 objectPosition, System.Numerics.Vector3 cameraPosition, System.Numerics.Vector3 cameraUpVector, System.Numerics.Vector3 cameraForwardVector);
static member CreateBillboard : System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Matrix4x4
Public Shared Function CreateBillboard (objectPosition As Vector3, cameraPosition As Vector3, cameraUpVector As Vector3, cameraForwardVector As Vector3) As Matrix4x4

パラメーター

objectPosition
Vector3

オブジェクトのうち、ビルボードの回転の中心となる位置。The position of the object that the billboard will rotate around.

cameraPosition
Vector3

カメラの位置。The position of the camera.

cameraUpVector
Vector3

カメラの上方向ベクトル。The up vector of the camera.

cameraForwardVector
Vector3

カメラの前方向ベクトル。The forward vector of the camera.

戻り値

作成されたビルボード。The created billboard.

適用対象