Beispiel #1
0
        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));
        }
Beispiel #2
0
 public GTAPed(Ped p)
 {
     Pos  = new GTAVector(p.Position);
     BBox = GTAData.ComputeBoundingBox(p, p.Position);
 }
Beispiel #3
0
 public GTAVehicle(Vehicle v)
 {
     Pos  = new GTAVector(v.Position);
     BBox = GTAData.ComputeBoundingBox(v, v.Position);
 }