BITKit/Src/Unity/Scripts/Entity/Components/Physics/IEntityPhysics.cs

23 lines
532 B
C#
Raw Normal View History

2023-09-01 14:35:05 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit.Entities.Physics
{
/// <summary>
/// 实体物理接口
/// </summary>
public interface IEntityPhysics
{
2024-05-31 01:23:15 +08:00
ValidHandle DisablePhysics { get; }
2023-09-01 14:35:05 +08:00
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);
}
}