Matrix.CreateBillboard Method (Microsoft.Xna.Framework)

Creates a new Matrix for spherical billboarding that rotates around specified object position.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static Matrix CreateBillboard(
	Vector3 objectPosition, 
	Vector3 cameraPosition, 
	Vector3 cameraUpVector, 
	Nullable<Vector3> cameraForwardVector
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

objectPosition
Type: Microsoft.Xna.Framework.Vector3
Position of billboard object. It will rotate around that vector.
cameraPosition
Type: Microsoft.Xna.Framework.Vector3
The camera position.
cameraUpVector
Type: Microsoft.Xna.Framework.Vector3
The camera up vector.
cameraForwardVector
Type: Nullable<Vector3>
Optional camera forward vector.

Return Value

Type: Microsoft.Xna.Framework.Matrix
The Matrix for spherical billboarding.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web