public GTADetection(Entity e, DetectionType type) { Type = type; Pos = new GTAVector(e.Position); Distance = Game.Player.Character.Position.DistanceTo(e.Position); BBox = GTAData.ComputeBoundingBox(e, e.Position); Handle = e.Handle; Rot = new GTAVector(e.Rotation); cls = DetectionClass.Unknown; Vector3 gmin; Vector3 gmax; e.Model.GetDimensions(out gmin, out gmax); BBox3D = new SharpDX.BoundingBox((SharpDX.Vector3) new GTAVector(gmin), (SharpDX.Vector3) new GTAVector(gmax)); }
public GTAPed(Ped p) { Pos = new GTAVector(p.Position); BBox = GTAData.ComputeBoundingBox(p, p.Position); }
public GTAVehicle(Vehicle v) { Pos = new GTAVector(v.Position); BBox = GTAData.ComputeBoundingBox(v, v.Position); }