Interaction Features (#101)

Various minor interaction features.

There is no concept of gravity in the game yet, so items drift through space or the hallways of a station until they are stopped. Thrown items do not collide with walls because making them collidable makes them collide with EVERYTHING, including the player. We need collision groups in the physics system.

Because of the previous problems the velocity things are throw at is set quite low, it can be tweaked after the other mentioned issues are resolved.
This commit is contained in:
Acruid
2018-08-22 01:19:47 -07:00
committed by Pieter-Jan Briers
parent cd4442b81e
commit ed39649721
11 changed files with 170 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
using Content.Server.GameObjects;
using SS14.Shared.Interfaces.GameObjects;
using System.Collections.Generic;
using SS14.Shared.Map;
namespace Content.Server.Interfaces.GameObjects
{
@@ -65,8 +66,9 @@ namespace Content.Server.Interfaces.GameObjects
/// Drops an item on the ground, removing it from the hand.
/// </summary>
/// <param name="index">The hand to drop from.</param>
/// <param name="coords"></param>
/// <returns>True if an item was successfully dropped, false otherwise.</returns>
bool Drop(string index);
bool Drop(string index, GridLocalCoordinates? coords);
/// <summary>
/// Checks whether the item in the specified hand can be dropped.