Most visited

Recently visited

CameraListener

public interface CameraListener

com.viro.core.CameraListener


Callback interface for responding to Camera driven events, such as position and rotation changes. CameraListener can be registered to receive events via setCameraListener(CameraListener) in ViroView.

Summary

Public methods

abstract void onTransformUpdate(Vector position, Vector rotation, Vector forward)

Invoked whenever the current Camera's transformations have changed.

Public methods

onTransformUpdate

void onTransformUpdate (Vector position, 
                Vector rotation, 
                Vector forward)

Invoked whenever the current Camera's transformations have changed.

Parameters
position Vector: The last known position of the camera in world coordinates.

rotation Vector: The last known rotation of the camera, represented as Euler angles about each principal axis, in radians.

forward Vector: The last known forward direction of the camera. This unit vector indicates the direction the camera is facing.

Hooray!