Matrix.CreateConstrainedBillboard Method (Microsoft.Xna.Framework)

Creates a new Matrix for cylindrical billboarding that rotates around specified axis.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.398)
  • C#
  • VB
  • F#
public static void CreateConstrainedBillboard(
	Vector3 objectPosition, 
	Vector3 cameraPosition, 
	Vector3 rotateAxis, 
	Nullable<Vector3> cameraForwardVector, 
	Nullable<Vector3> objectForwardVector, 
	out Matrix result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

objectPosition
Type: Microsoft.Xna.Framework.Vector3
Object position the billboard will rotate around.
cameraPosition
Type: Microsoft.Xna.Framework.Vector3
Camera position.
rotateAxis
Type: Microsoft.Xna.Framework.Vector3
Axis of billboard for rotation.
cameraForwardVector
Type: Nullable<Vector3>
Optional camera forward vector.
objectForwardVector
Type: Nullable<Vector3>
Optional object forward vector.
result
Type: out Microsoft.Xna.Framework.Matrix
The Matrix for cylindrical billboarding as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web