Skip to main content

TopDownCameraController

Functions

rotate_from_view(displacement_x, displacement_y, input, output)
panLeft(distance, object, result, multiplier)

pass in distance in world space to move left

panUp(distance, object, result, multiplier)

pass in distance in world space to move up

pan(delta, object, element, targetDistance, fov, result, multiplier)

main entry point; pass in Vector2 of change desired in pixel space, right and down are positive

rotate_from_view(displacement_x, displacement_y, input, output)

Kind: global function

ParamTypeDescription
displacement_xnumber
displacement_ynumber
inputTopDownCameraControllersource thing being rotated
outputTopDownCameraControllertarget thing where the result is written to

panLeft(distance, object, result, multiplier)

pass in distance in world space to move left

Kind: global function

ParamType
distancenumber
objectObject3D
resultVector3
multiplierVector3

panUp(distance, object, result, multiplier)

pass in distance in world space to move up

Kind: global function

ParamType
distancenumber
objectObject3D
resultVector3
multiplierVector3

pan(delta, object, element, targetDistance, fov, result, multiplier)

main entry point; pass in Vector2 of change desired in pixel space, right and down are positive

Kind: global function

ParamType
deltaVector2
objectObject3D
elementElement
targetDistancenumber
fovnumber
resultVector3
multiplierVector3