public SPBulletObject(int id, int playerid, SPVector pos, SPVector vel, SPVector rot) { _id = id; _playerid = playerid; _pos = pos; _vel = vel; _rot = rot; }
public SPPlayerObject(int id, string name, SPVector pos, SPVector vel, SPVector rot) { _id = id; _name = name; _pos = pos; _vel = vel; _rot = rot; }
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; }
public static Vector3 spvector_to_vector3(SPVector v) { return new Vector3(v._x,v._y,v._z); }