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
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.

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