LookAt

final case
class LookAt(target: Point, zoom: Zoom, rotation: Radians) extends Camera

LookAt cameras center the screen on whatever position they are looking at. Useful for following a players character, for example.

Companion
object
trait Serializable
trait Product
trait Equals
trait Camera
class Object
trait Matchable
class Any

Value members

Concrete methods

def lookAt(newTarget: Point): LookAt
def rotateBy(angle: Radians): LookAt
def rotateTo(angle: Radians): LookAt
def withRotation(newRotation: Radians): LookAt
def withTarget(newTarget: Point): LookAt
def withZoom(newZoom: Zoom): LookAt

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

val isLookAt: Boolean