Search the Community

Showing results for tags 'vector'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feeback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • Showcase
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 8 results

  1. Is it possible to delete buildings, roads, and other objects placed by vector data? We're working with a historical time period and will need to ensure that some modern-day roads and city expansions don't make it into our final product. Being unable to do so would mean that we'd have to edit the shape files - not the end of the world, but something important for us to know from a workflow perspective. Also, we plan to use actual geometry for buildings and place them via points. Not sure if that makes a difference. Thanks!
  2. Hi, All As the topic, we have to modify the object globalterrain, because our height data isn't satisfied with the building models some kind. And the vector files is more precise, it would meet our needs of urban planning system.
  3. Hi, I have a base class called Car. From Car class I have derived p21c class. Then I define a vector: Car cars[]; child = createEntity("p21c"); cars.append(child); When I try to append a child class to this vector in log file it says: Variable::operator<(): bad operands int and user class SOLVED: changing cars.append to car[1] = p21 worked
  4. Hello Short example: class T { string a; T(string value) { a = value; } }; class My { int _flag = 0; int _test[0]; T _test2 = new T("old"); void test() { log.message("before:\t" + string(_test.size()) + "\t" + _test2.a + "\n"); int local[] = (1); T local2 = new T("temp"); log.message("after:\t" + string(_test.size()) + "\t" + _test2.a + "\n"); local.append(10); _test = local; local2 = new T("new"); _test2 = local2; if (_flag == 0) { _flag = 1; test(); }
  5. So, I have a custom class MyClass. In an event handler I create a vector of these objects like : class EventHandler { MyClass mVector[0]; void addMyClass(MyClass aObject) { mVector.append(aObject). } int findObject(MyClass aObject) { int found = 0; if(mVector.find(aObject, NULL) != NULL) { found = 1; } return found; } }; Adding objects to the vector works with no problems. I can check this by giving each object a unique ID and printing those out. The problem is find(). If the MyObject I'm looking for is at inde
  6. So, I have a recursive class function with a map, a vector, and a problem Say the function looks like void foo(MyObject bar) { *do stuff with bar* MyObject childObjectMap[]; bar.getChildren(childObjectMap); // clears childObjectMap then copies all of the child objects into it foreach(MyObject obj; childObjectMap) { foo(obj); } } The expected result is that this will traverse each MyObject, do things with it, then get all it's children objects and repeat recursively. What actually happens is that it only does this with the first c
  7. Are there any examples of how to return a Unigine::vector<Type> back to UnigineScript? It doesn't appear to work in the way that I would expect. C++ ---MyClass.cpp Unigine::Vector<CustomStruct> &getStruct() { return my_struct; } ---Plugin.cpp ExternClass<MyClass> *my_class= MakeExternClass<MyClass>(); my_class->addConstructor(); my_class->addFunction("getStruct",&MyClass::getStruct); Interpreter::addExternClass("MyClass",my_class); UnigineScript MyClass my_class = new MyClass(); CustomStruct structs[] = my_class.getStruct(); Error: Interpret
  8. [SOLVED] Problem with Reflection Class

    Hello. Why an error occurs during processing of user class with vector by Reflection Class? For example, I have the following class: class MyClass { private: int myVector[0] = (1, 2, 3); public: MyClass() {} void addItem(int value) { myVector.append(value); } int getItem(int num) { return myVector[num]; } int getNumItems() { return myVector.size(); } }; I use this class in Init() function: int init() { MyClass my_class = new MyClass(); my_class.addItem(4); forloop(int i = 0; my_class.getNumItems()) { log.message("item[%d] = %d;\n", i, my_cla