23 lines
532 B
C#
23 lines
532 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BITKit.Entities.Physics
|
|
{
|
|
/// <summary>
|
|
/// 实体物理接口
|
|
/// </summary>
|
|
public interface IEntityPhysics
|
|
{
|
|
ValidHandle DisablePhysics { get; }
|
|
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);
|
|
}
|
|
}
|
|
|