Class TrackedTrajectory
Inheritance
TrackedTrajectory
Assembly: cs.temp.dll.dll
Syntax
public class TrackedTrajectory : MonoBehaviour
Fields
TrajectoryDeltaSec
Declaration
public float TrajectoryDeltaSec
Field Value
TrajectoryPoints
Declaration
public int TrajectoryPoints
Field Value
Properties
mainGameObject
Declaration
public GameObject mainGameObject { get; set; }
Property Value
Type |
Description |
GameObject |
|
orientation
Declaration
public Vector3 orientation { get; }
Property Value
position
Declaration
public Vector3 position { get; }
Property Value
trajectory
Declaration
public LinearTrajectory trajectory { get; }
Property Value
vector
Declaration
public Vector2 vector { get; }
Property Value
velocity
Declaration
public float velocity { get; }
Property Value
Methods
Angle(TrackedTrajectory)
Declaration
public float Angle(TrackedTrajectory b)
Parameters
Returns
Angle(Vector2)
Declaration
public float Angle(Vector2 b)
Parameters
Type |
Name |
Description |
Vector2 |
b |
|
Returns
lookingAt(Vector3, Single)
Declaration
public bool lookingAt(Vector3 groupCenter, float degreesEpsilon = 45F)
Parameters
Type |
Name |
Description |
Vector3 |
groupCenter |
|
Single |
degreesEpsilon |
|
Returns
movingTowards(Vector3, Single)
Declaration
public bool movingTowards(Vector3 point, float minVelocity = 0.5F)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
minVelocity |
|
Returns
nearbyAgents(Single)
TrackedTrajectories|Agents|Robots near this game object
Must have an attached collider and script of the appropriate type
Declaration
public List<TrackedAgent> nearbyAgents(float Threshold)
Parameters
Type |
Name |
Description |
Single |
Threshold |
|
Returns
Start()
Declaration
public virtual void Start()
Update()
Declaration
public virtual void Update()