MCPcopy Create free account
hub / github.com/melonjs/melonJS / setLookAt

Method setLookAt

packages/melonjs/src/camera/camera3d.ts:540–542  ·  view source on GitHub ↗

* Convenience overload of `lookAt` accepting a Vector3d. * @param target - world-space point to look at * @returns this camera

(target: Vector3d)

Source from the content-addressed store, hash-verified

538 * @returns this camera
539 */
540 setLookAt(target: Vector3d): this {
541 return this.lookAt(target.x, target.y, target.z);
542 }
543
544 /**
545 * Set the target-local follow offset. Called once when configuring

Callers 1

camera3d.spec.jsFile · 0.80

Calls 1

lookAtMethod · 0.95

Tested by

no test coverage detected