Пример #1
0
 public SPBulletObject(int id, int playerid, SPVector pos, SPVector vel, SPVector rot)
 {
     _id = id;
     _playerid = playerid;
     _pos = pos;
     _vel = vel;
     _rot = rot;
 }
Пример #2
0
 public SPPlayerObject(int id, string name, SPVector pos, SPVector vel, SPVector rot)
 {
     _id = id;
     _name = name;
     _pos = pos;
     _vel = vel;
     _rot = rot;
 }
Пример #3
0
 public static SPVector from_json(JSONObject jso)
 {
     SPVector rtv = new SPVector(
         (float)jso.GetNumber(SN.X),
         (float)jso.GetNumber(SN.Y),
         (float)jso.GetNumber(SN.Z)
     );
     return rtv;
 }
Пример #4
0
 public static Vector3 spvector_to_vector3(SPVector v)
 {
     return new Vector3(v._x,v._y,v._z);
 }