Ejemplo n.º 1
0
        public static EditorObject GetObjectFromScreenPoint(Vec2 pt, out Vec3 hitPos, bool includeFrozen, EditorObjectSelection ignore)
        {
            EditorObject result;

            using (PhysEntityVector vector = PhysEntityVector.Create())
            {
                ignore.GetPhysEntities(vector);
                result = new EditorObject(Binding.FCE_ObjectManager_GetObjectFromScreenPoint(pt.X, pt.Y, out hitPos.X, out hitPos.Y, out hitPos.Z, includeFrozen, vector.Pointer));
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static EditorObject GetObjectFromScreenPoint(Vec2 pt, out Vec3 hitPos, bool includeFrozen, EditorObject ignore)
        {
            PhysEntityVector vector = PhysEntityVector.Null;

            if (ignore.IsValid)
            {
                vector = PhysEntityVector.Create();
                ignore.GetPhysEntities(vector);
            }
            EditorObject result = new EditorObject(Binding.FCE_ObjectManager_GetObjectFromScreenPoint(pt.X, pt.Y, out hitPos.X, out hitPos.Y, out hitPos.Z, includeFrozen, vector.Pointer));

            if (vector.IsValid)
            {
                vector.Dispose();
            }
            return(result);
        }