Click or drag to resize
AB4D logo

TargetPositionCameraStrafeCamera Method

Calculates the moveVector 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
dx
dy  Double
dy
dz  Double
dz
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 LookDirection use MoveCamera(Vector3D) method.

See Also