Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / Interfaces / IMovable.cs
@Rackday Rackday on 18 Aug 485 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public interface IMovable
{
    void Move(Vector3 direction, float speed, float acceleration);
    void ChangeDrag(float drag);

    void ChangeVelocity(Vector3 velocity);

    Vector3 GetVelocity();

    void ToggleGravity(bool b);

    bool GetGravity();

    void AddForce(Vector3 force);
    bool OnGround();

    bool IsColliding();

    void SetBlockMovement(bool b);
    bool GetBlockMovement();
}