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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user