Camera.bindObject

A method for binding a specific object to a camera to track it.

  1. void bindObject(Vector!float position, Vector!float size)
  2. void bindObject(Vector!float* position, Vector!float size)
    class Camera
    @safe nothrow pure
    void
    bindObject
    (,
    Vector!float size = vecNaN!float
    )
  3. void bindObject(Instance instance)

Parameters

position Vector!float*

The reference to the variable for which the tracking will be performed. We need a variable that will be alive during the camera's tracking cycle.

size Vector!float

The size of the object. (Each object is represented as a rectangle.)

Meta