Files
RobustToolbox/SS3D_shared/HelperClasses/InterpolationPacket.cs
2011-05-11 03:58:10 +00:00

35 lines
875 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mogre;
namespace SS3D_shared.HelperClasses
{
public struct InterpolationPacket
{
public double time;
public Mogre.Vector3 position;
public float rotW;
public float rotY;
public InterpolationPacket(Mogre.Vector3 _position, float _rotW, float _rotY, double _time)
{
this.position = _position;
this.rotW = _rotW;
this.rotY = _rotY;
this.time = _time;
}
public InterpolationPacket(float x, float y, float z, float _rotW, float _rotY, double _time)
{
this.position = new Mogre.Vector3(x, y, z);
this.rotW = _rotW;
this.rotY = _rotY;
this.time = _time;
}
}
}