2024-06-03 18:26:03 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2025-02-10 02:13:46 +00:00
|
|
|
|
namespace DDD.Interfaces
|
2024-06-03 18:26:03 +00:00
|
|
|
|
{
|
|
|
|
|
public interface IPhysicMovable
|
|
|
|
|
{
|
|
|
|
|
Rigidbody Rigidbody { get; }
|
|
|
|
|
float MoveSpeed { get; }
|
2024-09-23 02:00:21 +00:00
|
|
|
|
float MoveSpeedMultiplier { get; }
|
2024-06-16 21:29:06 +00:00
|
|
|
|
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; }
|
2024-07-01 09:00:57 +00:00
|
|
|
|
Vector3 PushDirection { get; }
|
|
|
|
|
float PushPower { get; }
|
|
|
|
|
float PushPowerReduction { get; }
|
|
|
|
|
|
2024-09-23 02:00:21 +00:00
|
|
|
|
void SetMoveSpeedMultiplier(float value);
|
|
|
|
|
void ResetMoveSpeedMultiplier();
|
2024-06-16 21:29:06 +00:00
|
|
|
|
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);
|
2024-07-01 09:00:57 +00:00
|
|
|
|
void SetPush(Vector3 pushDirection, float pushPower);
|
2024-06-03 18:26:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|