2024-06-03 18:26:03 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace BlueWater.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IPhysicMovable
|
|
|
|
|
{
|
|
|
|
|
Rigidbody Rigidbody { get; }
|
|
|
|
|
float MoveSpeed { get; }
|
2024-06-16 21:29:06 +00:00
|
|
|
|
float MoveSpeedCoefficient { get; }
|
|
|
|
|
bool IsMoveEnabled { get; }
|
2024-06-03 18:26:03 +00:00
|
|
|
|
bool IsMoving { get; }
|
2024-06-16 21:29:06 +00:00
|
|
|
|
Vector3 CurrentDirection { get; }
|
|
|
|
|
|
|
|
|
|
void SetMoveSpeedCoefficient(float value);
|
|
|
|
|
void ResetMoveSpeedCoefficient();
|
|
|
|
|
void SetCurrentDirection(Vector3 normalDirection);
|
2024-06-03 18:26:03 +00:00
|
|
|
|
bool CanMove();
|
2024-06-16 21:29:06 +00:00
|
|
|
|
void Move();
|
2024-06-03 18:26:03 +00:00
|
|
|
|
void AddForce(Vector3 force, ForceMode forceMode);
|
|
|
|
|
}
|
|
|
|
|
}
|