summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/Core/ECS/Components/ResolvedMovement.cs
blob: d91a62167ca72e99781a0a914cabb5f86ce31a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#if MODULE_ENTITIES
using Unity.Entities;
using Unity.Mathematics;

namespace Pathfinding.ECS {
	using Pathfinding;
	using Pathfinding.Util;

	/// <summary>
	/// Holds the final movement data for an entity.
	/// This is the data that is used by the movement system to move the entity.
	/// </summary>
	public struct ResolvedMovement : IComponentData {
		/// <summary>\copydocref{MovementControl.targetPoint}</summary>
		public float3 targetPoint;

		/// <summary>\copydocref{MovementControl.speed}</summary>
		public float speed;

		public float turningRadiusMultiplier;

		/// <summary>\copydocref{MovementControl.targetRotation}</summary>
		public float targetRotation;

		/// <summary>\copydocref{MovementControl.targetRotationHint}</summary>
		public float targetRotationHint;

		/// <summary>\copydocref{MovementControl.targetRotationOffset}</summary>
		public float targetRotationOffset;

		/// <summary>\copydocref{MovementControl.rotationSpeed}</summary>
		public float rotationSpeed;
	}
}
#endif