28 lines
731 B
C#
28 lines
731 B
C#
using System;
|
|
using BITKit;
|
|
using BITKit.StateMachine;
|
|
using Unity.Mathematics;
|
|
|
|
namespace Project.B.CharacterController
|
|
{
|
|
|
|
/// <summary>
|
|
/// 角色控制器
|
|
/// </summary>
|
|
public interface ICharacterController:IStateMachine<ICharacterState>
|
|
{
|
|
ValidHandle AllowMovement { get; }
|
|
float Height { get; }
|
|
float3 Center { get; }
|
|
float3 Position { get; set; }
|
|
float3 Velocity { get; set; }
|
|
float3 ViewPosition { get; }
|
|
float3 AngularVelocity { get; }
|
|
quaternion Rotation { get; set; }
|
|
quaternion ViewRotation { get; set;}
|
|
float3 SelfVelocity { get; }
|
|
bool IsGrounded { get; }
|
|
event Action<float3, float> OnLand;
|
|
}
|
|
}
|