This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
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.

Unigine::World Class

World Class

UNIGINEUNIGINE 2.0Comments
-virtual int getCollision(const UNIGINE_BOUND_BOX & bb, Vector <ObjectPtr> & objects) const =0 Searches for all collider objects within a given bounding box.
-virtual int getCollision(const UNIGINE_BOUND_SPHERE & bb, Vector<ObjectPtr> & objects) const =0 Searches for all collider objects within a given bounding sphere.
-virtual int getCollision(const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, Vector<ObjectPtr> & objects) const =0 Performs tracing from the p0 point to the p1 point to find all collider objects.
virtual ObjectPtr getIntersection(const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, int mask, int & ret_surface) const=0- Removed.
virtual ObjectPtr getIntersection(const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, int mask, UNIGINE_VEC3 & ret_point, vec3 & ret_normal, int & ret_surface)- Removed.
virtual ObjectPtr getIntersection(const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, int mask, UNIGINE_VEC3 & ret_point, vec3 & ret_normal, vec4 & ret_textcoord, int & ret_surface)virtual ObjectPtr getIntersection(const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, int mask, UNIGINE_VEC3 * ret_point, vec3 * ret_normal, vec4 * ret_texcoord, int * ret_index, int * ret_surface) const =0 Searches for all of the objects intersecting the line.
-virtual ObjectPtr getIntersection (const UNIGINE_VEC3 & p0, const UNIGINE_VEC3 & p1, int mask, const Vector<NodePtr> & exclude, UNIGINE_VEC3 * ret_point, vec3 * ret_normal, vec4 * ret_texcoord, int * ret_index, int * ret_surface) const =0
-virtual void setBudget(float budget) const =0 Sets the world generation budget value for Grass and Clutter objects.
-virtual float getBudget() const =0 Returns the value of the world generation budget for Grass and Clutter objects.

WorldExtern Class

UNIGINEUNIGINE 2.0Comments
-static int type() WorldExtern type.

WorldLayer Class

UNIGINEUNIGINE 2.0Comments
-static int type() WorldLayer type.
-virtual Ptr<Node> getNode() const =0 Returns a node pointer.
-virtual int getNumNodes() const =0 Returns the number of nodes contained in the world layer.
-virtual NodePtr getNode(int num) const =0 Returns a specified node contained in the world layer.

WorldPortal Class

UNIGINEUNIGINE 2.0Comments
-static int type() WorldPortal type.

WorldSector Class

UNIGINEUNIGINE 2.0Comments
-virtual Ptr<Node> getNode() const =0 Returns a node pointer.
-static int type() WorldSector type.

WorldSwitcher Class

UNIGINEUNIGINE 2.0Comments
-static int type() WorldSwitcher type.

WorldTrigger Class

UNIGINEUNIGINE 2.0Comments
-virtual Ptr<Node> getNode() const =0 Returns a node pointer.
-static int type() WorldTrigger type.
Last update: 2017-07-03
Build: ()