This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

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