1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user