This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Usage Examples
API Reference
Integration Samples
Usage Examples
C++ Plugins
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Engine Library Migration

New classes in this section:

Updated Intersections

In UNIGINE 2.0, there are several classes that are used to manage intersections, namely:

Instances of these classes are deleted automatically when it is necessary.

A temporary instance of one of these classes should be constructed and passed into the getIntersection() method instead of a return array. For example:

  • In UNIGINE, the result of intersection is added to the return array:
    Source code (UnigineScript)
    int ret[0];
  • In UNIGINE 2.0, the result of intersection is added to the given instance of the PhysicsIntersection class
    Source code (UnigineScript)
    PhysicsIntersection intersection = new PhysicsIntersection();

If you passing NULL instead of an intersection query, the object will perform the fast intersection algorithm without searching the closest intersection point.

Articles in This Section

Last update: 2017-07-03
Build: ()