using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace BITKit.Entities.Physics { /// /// 实体物理接口 /// public interface IEntityPhysics { ValidHandle DisablePhysics { get; } Vector3 Center { get; } bool IsPhysics { get; } Vector3 Velocity { get; set; } Action OnSetPhysics { get; set; } void AddForce(Vector3 force, ForceMode mode = ForceMode.Force); void AddTorque(Vector3 torque, ForceMode mode = ForceMode.Force); } }