class MAGES::Segment

Overview

Draws a continuous, straight line between two points, with customizable endpoint objects. More…

class Segment: public MonoBehaviour
{
public:
    // classes

    class Data;

    // properties

    Vector3 TargetPosition;

    // methods

    void Refresh();
    Segment Follow(GameObject target);
};

Detailed Documentation

Draws a continuous, straight line between two points, with customizable endpoint objects.

Properties

Vector3 TargetPosition

Gets or sets the target position of the segment.

Methods

void Refresh()

Refreshes the segment.

Segment Follow(GameObject target)

Follows a given game object.

Parameters:

target

the object to follow.

Returns:

Self.