Files
Net.Like.Xue.Tokyo/Packages-Local/Com.Project.B.Unity/CharacterController/Core/ICharacterController.cs

28 lines
731 B
C#
Raw Normal View History

2025-06-24 23:49:13 +08:00
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;
}
}