first commit
This commit is contained in:
27
NitroxModel/Packets/PlayerMovement.cs
Normal file
27
NitroxModel/Packets/PlayerMovement.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using NitroxModel.DataStructures.Unity;
|
||||
using NitroxModel.Networking;
|
||||
|
||||
namespace NitroxModel.Packets
|
||||
{
|
||||
[Serializable]
|
||||
public class PlayerMovement : Movement
|
||||
{
|
||||
public override ushort PlayerId { get; }
|
||||
public override NitroxVector3 Position { get; }
|
||||
public override NitroxVector3 Velocity { get; }
|
||||
public override NitroxQuaternion BodyRotation { get; }
|
||||
public override NitroxQuaternion AimingRotation { get; }
|
||||
|
||||
public PlayerMovement(ushort playerId, NitroxVector3 position, NitroxVector3 velocity, NitroxQuaternion bodyRotation, NitroxQuaternion aimingRotation)
|
||||
{
|
||||
PlayerId = playerId;
|
||||
Position = position;
|
||||
Velocity = velocity;
|
||||
BodyRotation = bodyRotation;
|
||||
AimingRotation = aimingRotation;
|
||||
DeliveryMethod = NitroxDeliveryMethod.DeliveryMethod.UNRELIABLE_SEQUENCED;
|
||||
UdpChannel = UdpChannelId.MOVEMENTS;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user