class MAGES::CharacterController::HeadController::LookAtObjectData

Overview

The class that stores the data of look at objects. More…

class LookAtObjectData
{
public:
    // properties

    GameObject GameObject;
    float LookSpeedInSeconds;
    float LookAtForSeconds;

    // methods

    LookAtObjectData(
        GameObject gameObject,
        float lookSpeed = 0.2f,
        float lookAtForSeconds = 0.2f
    );
};

Detailed Documentation

The class that stores the data of look at objects.

Properties

GameObject GameObject

Gets or sets the GameObject we are looking at.

float LookSpeedInSeconds

Gets or sets the speed in which we look at the object.

float LookAtForSeconds

Gets or sets the time we look at the object. If 0 then we look at it forever until we look somewhere else.

Methods

LookAtObjectData(
    GameObject gameObject,
    float lookSpeed = 0.2f,
    float lookAtForSeconds = 0.2f
)

Initializes a new instance of the LookAtObjectData class. The constructor of the class.

Parameters:

gameObject

The gameObject.

lookSpeed

The look speed.

lookAtForSeconds

The time we are looking at an object. If 0 we look at it until we look somewhere else.