Search Results for

    Show / Hide Table of Contents

    Interface IRotateTowards

    Update the cube so that it always rotates towards the main camera

    Namespace: XRC.Students.SU2023.IN03.Chen
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IRotateTowards

    Methods

    ApplyRotateTowards(Transform, Transform)

    Update the cube so that it always rotates towards the main camera

    Declaration
    virtual void ApplyRotateTowards(Transform camera, Transform interactable)
    Parameters
    Type Name Description
    Transform camera

    The main camera, center of rotation

    Transform interactable

    The transform of the interactable rotating towards the camera

    In This Article
    Back to top XR Collaboratory