Aiming syncing fix: aiming angle is calculated from the position of the shoulder towards the cursor (or a position within the collider that's roughly at the shoulder).

This commit is contained in:
Joonas Rikkonen
2017-07-18 18:33:30 +03:00
parent 56e04823f1
commit 49003c465c
4 changed files with 41 additions and 12 deletions
@@ -29,6 +29,19 @@ namespace Barotrauma
get;
private set;
}
public Vector2 AimSourcePos
{
get { return ConvertUnits.ToDisplayUnits(AimSourceSimPos); }
}
public virtual Vector2 AimSourceSimPos
{
get
{
return Collider.SimPosition;
}
}
public AnimController(Character character, XElement element)
: base(character, element)