PropertyInterface
Nectunia.Utility.FollowTarget Class Reference

Detailed Description

Component to force a GameObect to follow a target Gameobject.

Inheritance diagram for Nectunia.Utility.FollowTarget:

Public Attributes

GameObject _target
 The target GameObject to follow. More...
 
Vector3 _gap = Vector3.zero
 Gap between the parent GameObject and it's Target. More...
 
bool _followOnX = true
 Has the parent GameObject to follow the target on the X axis. More...
 
bool _followOnY = false
 Has the parent GameObject to follow the target on the Y axis. More...
 
bool _followOnZ = true
 Has the parent GameObject to follow the target on the Z axis. More...
 
float _lerpSpeed = 0.2f
 Lerp speed of the parent GameObject. More...
 

Member Data Documentation

◆ _followOnX

bool Nectunia.Utility.FollowTarget._followOnX = true

Has the parent GameObject to follow the target on the X axis.

◆ _followOnY

bool Nectunia.Utility.FollowTarget._followOnY = false

Has the parent GameObject to follow the target on the Y axis.

◆ _followOnZ

bool Nectunia.Utility.FollowTarget._followOnZ = true

Has the parent GameObject to follow the target on the Z axis.

◆ _gap

Vector3 Nectunia.Utility.FollowTarget._gap = Vector3.zero

Gap between the parent GameObject and it's Target.

◆ _lerpSpeed

float Nectunia.Utility.FollowTarget._lerpSpeed = 0.2f

Lerp speed of the parent GameObject.

◆ _target

GameObject Nectunia.Utility.FollowTarget._target

The target GameObject to follow.