DX9ToolsR4 - Created by: X

Camera.SetPosition Method (SetVector, Single, Boolean)

Sets the position of the camera.

[Visual Basic]
Overloads Public Sub SetPosition( _
   ByVal What As SetVector, _
   ByVal Value As Single, _
   Optional ByVal DoUpdate As Boolean = False _
)
[C#]
public void SetPosition(
   SetVector What,
   float Value,
   bool DoUpdate
);

Parameters

What
Defines what specific part(s) of the Vector3 type will be set to the Value parameter.
Value
The value that will be passed into the Cameras private Vector3 varible.
DoUpdate
If DoUpdate is False but the AutoUpdateView property is True, SetPosition will call the UpdateView method.

Remarks

You can specify multiple parts of a vector to set, for example ...

     Camera.SetPosition(SetVector.X or SetVector.Z, 12, False)
 
Both the X and Z parts of the Vector3 type that the Camera class privately stores will be set to 12.

See Also

Camera Class | CBX.Libs.DX9ToolsR4 Namespace | Camera.SetPosition Overload List