Click or drag to resize
AB4D logo

FirstPersonCameraStrafeCamera Method

StrafeCamera moves the camera based on the current camera's LookDirection and UpDirection.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
protected virtual void StrafeCamera(
	double dx,
	double dy,
	double dz
)

Parameters

dx  Double
change in x direction
dy  Double
change in y direction
dz  Double
change in z direction
Remarks

StrafeCamera moves the camera based on the current camera's LookDirection and UpDirection.

For example if camera is looking to the left (LookDirection = (-1,0,0)), than strafing the camera for dx=10 will move the camera into the screen (in the -z direction).

To move the camera with just changing the camera position regardless of the LookDirectio use MoveCamera(Vector3D) method.

See Also