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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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: ()