Instantiates a Pivot Target Camera. This represents a Pivot Target type of camera. It can be useful for navigating using only mouse and about a pivot position from mouse cursor pick input.
Define the name of the camera in the scene
Define the start position of the camera in the scene
Define the scene the camera belongs to
Define the input manager associated with the camera.
ReadonlyonIndicates whether camera is in topdown mode or not.
ReadonlytwinfinityOverride _checkInputs in targetCamera. This function calculates movement, rotation and zoom and apply it to camera position and target.
Attach the input controls to a specific dom element to get the input from.
OptionalnoPreventDefault: booleanDefines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Attach the input controls to a specific dom element to get the input from.
defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
OptionalnoPreventDefault: booleanDefines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) BACK COMPAT SIGNATURE ONLY.
Detach the current controls from the specified dom element.
Detach the current controls from the specified dom element.
defines an ignored parameter kept for backward compatibility. If you want to define the source input element, you can set engine.inputElement before calling camera.attachControl
Destroy the camera and release the current resources hold by it.
Gets the current object class name.
the class name
This represents a pivot target type of camera. It can be useful for navigating using only mouse and about a pivot position from mouse cursor pick input.