示例#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
文件: Util.cs 项目: spotco/Shoot3Kill
 public static Vector3 spvector_to_vector3(SPVector v)
 {
     return new Vector3(v._x,v._y,v._z);
 }