CapersProject/Assets/02.Scripts/Interface/IPhysicMovable.cs

25 lines
766 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00:00
using UnityEngine;
namespace BlueWater.Interfaces
{
public interface IPhysicMovable
{
Rigidbody Rigidbody { get; }
float MoveSpeed { get; }
2024-09-23 02:00:21 +00:00
float MoveSpeedMultiplier { get; }
bool IsMoveEnabled { get; }
2024-06-03 18:26:03 +00:00
bool IsMoving { get; }
Vector3 CurrentDirection { get; }
Vector3 PushDirection { get; }
float PushPower { get; }
float PushPowerReduction { get; }
2024-09-23 02:00:21 +00:00
void SetMoveSpeedMultiplier(float value);
void ResetMoveSpeedMultiplier();
void SetCurrentDirection(Vector3 normalDirection);
2024-06-03 18:26:03 +00:00
bool CanMove();
void Move();
2024-06-03 18:26:03 +00:00
void AddForce(Vector3 force, ForceMode forceMode);
void SetPush(Vector3 pushDirection, float pushPower);
2024-06-03 18:26:03 +00:00
}
}