summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/Core/ECS/Components/GravityState.cs
blob: 4ab8700e40773401a589e085b05e357253cb6e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if MODULE_ENTITIES
using Unity.Entities;
using Unity.Mathematics;

namespace Pathfinding.ECS {
	/// <summary>Agent state related to gravity</summary>
	public struct GravityState : IComponentData, IEnableableComponent {
		/// <summary>
		/// Current vertical velocity of the agent.
		/// This is the velocity that the agent is moving with due to gravity.
		/// It is not necessarily the same as the Y component of the estimated velocity.
		/// </summary>
		public float verticalVelocity;
	}
}
#endif