fun lookAt(look: ZVector3)(source)

Adjusts the object's orientation so that it "looks at" a specified point in space.

Parameters

look

The point in space to look at.


fun lookAt(look: ZVector3, up: ZVector3)(source)

Adjusts the object's orientation so that it "looks at" a specified point in space, with a specified up direction. This changes the object's rotation to face the point, while aligning its up direction with the specified up vector.

Parameters

look

The point in space to look at.

up

The up direction vector to align with.