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.616)
  • C#
  • VB
  • F#
public static Matrix CreateConstrainedBillboard(
	Vector3 objectPosition, 
	Vector3 cameraPosition, 
	Vector3 rotateAxis, 
	Nullable<Vector3> cameraForwardVector, 
	Nullable<Vector3> objectForwardVector
)

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.

Return Value

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

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web