(f417b026f) Fetched: Changes for playing video tutorial from local branch
This commit is contained in:
@@ -36,20 +36,32 @@ namespace Barotrauma
|
||||
private set;
|
||||
}
|
||||
|
||||
public Vector2 LinearVelocity
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public float AngularVelocity
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public readonly float Timestamp;
|
||||
public readonly UInt16 ID;
|
||||
|
||||
public PosInfo(Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, float time)
|
||||
public PosInfo(Vector2 pos, float rotation, Vector2 linearVelocity, float angularVelocity, float time)
|
||||
: this(pos, rotation, linearVelocity, angularVelocity, 0, time)
|
||||
{
|
||||
}
|
||||
|
||||
public PosInfo(Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, UInt16 ID)
|
||||
public PosInfo(Vector2 pos, float rotation, Vector2 linearVelocity, float angularVelocity, UInt16 ID)
|
||||
: this(pos, rotation, linearVelocity, angularVelocity, ID, 0.0f)
|
||||
{
|
||||
}
|
||||
|
||||
protected PosInfo(Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, UInt16 ID, float time)
|
||||
protected PosInfo(Vector2 pos, float rotation, Vector2 linearVelocity, float angularVelocity, UInt16 ID, float time)
|
||||
{
|
||||
Position = pos;
|
||||
Rotation = rotation;
|
||||
@@ -775,8 +787,8 @@ namespace Barotrauma
|
||||
|
||||
newVelocity = positionBuffer[0].LinearVelocity;
|
||||
newPosition = positionBuffer[0].Position;
|
||||
newRotation = positionBuffer[0].Rotation ?? Rotation;
|
||||
newAngularVelocity = positionBuffer[0].AngularVelocity ?? AngularVelocity;
|
||||
newRotation = positionBuffer[0].Rotation;
|
||||
newAngularVelocity = positionBuffer[0].AngularVelocity;
|
||||
|
||||
positionBuffer.RemoveAt(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user