blob: 497b8b5ff75edface000590644f571a83961f4d0 (
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;
/// <summary>
/// Tag component to enable syncing between an agent's Transform and the agent entity's position.
///
/// See: <see cref="FollowerEntity.updatePosition"/>
/// </summary>
public struct SyncPositionWithTransform : IComponentData {
}
/// <summary>
/// Tag component to enable syncing between an agent's Transform and the agent entity's rotation.
///
/// See: <see cref="FollowerEntity.updateRotation"/>
/// </summary>
public struct SyncRotationWithTransform : IComponentData {
}
/// <summary>
/// Tag component to indicate that the agent's forward direction is along the Y axis.
///
/// This is used to convert between the forward direction of the GameObject and the internal forward direction, which always uses +Z as forward.
///
/// See: <see cref="FollowerEntity.orientation"/>
/// See: <see cref="OrientationMode"/>
/// </summary>
public struct OrientationYAxisForward : IComponentData {
}
}
#endif
|