This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Physics-Related Classes

New classes in this section:

Body Class

UNIGINEUNIGINE 2
Body clone(Object object = NULL)Body clone(Object object = 0)
Shape getIntersection(vec3 p0, vec3 p1, int mask) Shape getIntersection(vec3 p0, vec3 p1, int mask, variable v = 0)
Shape getIntersection(vec3 p0, vec3 p1, int mask, int ret_id)Shape getIntersection(vec3 p0, vec3 p1, int mask, variable v = 0)
See remarks below.
BODY_RAILBODY_PATH

Remarks:

  1. The result of intersection is put into an instance of the PhysicsIntersection or PhysicsIntersectionNormal class.

BodyCloth Class

UNIGINEUNIGINE 2
int getNumTriangles()int getNumIndices ()
int getTriangleParticle(int num, int index)int getParticleIndex(int num)

BodyRail Class

Warning
The BodyRail class has been renamed BodyPath.
UNIGINEUNIGINE 2
string getSplineName()string getPathName()
void setSplineName(string name)void setPathName(string name, int dynamic)

New Functions

Shape Class

UNIGINEUNIGINE 2
int getIntersection(vec3 p0, vec3 p1)int getIntersection(vec3 p0, vec3 p1, int mask = 0, variable v)
int getIntersection(vec3 p0, vec3 p1, int ret_id) int getIntersection(vec3 p0, vec3 p1, int mask = 0, variable v)
See remarks below.
SHAPE_MESHRemoved

Remarks:

  1. The result is put into an instance of the PhysicsIntersection or PhysicsIntersectionNormal class.

Joint Class

UNIGINEUNIGINE 2
JOINT_RAILJOINT_PATH

JointRail Class

Warning
The JointRail class has been renamed JointPath.
Last update: 2017-07-03
Build: ()