mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
35 lines
875 B
C#
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;
|
|
}
|
|
|
|
}
|
|
}
|