Neodroid
0.2.0
Machine Learning Environment Prototyping Tool
FollowTarget.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
3
namespace
droid
.Runtime.Utilities.Misc.Orientation {
7
[ExecuteInEditMode]
8
public
class
FollowTarget
: MonoBehaviour {
11
public
Vector3 _Offset =
new
Vector3(0f, 7.5f, 0f);
12
15
public
Transform
target
;
16
17
void
LateUpdate() {
18
if
(this.target) {
19
this.transform.position = this.target.position + this._Offset;
20
}
21
}
22
}
23
}
droid
droid.Runtime.Utilities.Misc.Orientation.FollowTarget
Definition:
FollowTarget.cs:8
UnityEngine
droid.Runtime.Utilities.Misc.Orientation.FollowTarget.target
Transform target
Definition:
FollowTarget.cs:15
Runtime
Utilities
Misc
Orientation
FollowTarget.cs
Generated by
1.8.13