Physics-Related Classes
New classes in this section:
- PhysicsIntersection Class
- PhysicsIntersectionNormal Class
- BodyPath Class (former BodyRail Class)
- JointPath Class (former JointRail Class)
Body Class
UNIGINE | UNIGINE 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_RAIL | BODY_PATH |
int getNumChilds() | int getNumChildren() See details below. |
Remarks:
- The result of intersection is put into an instance of the PhysicsIntersection or PhysicsIntersectionNormal class.
- The int getNumChilds() function is depricated. It is provided to keep your code working until the next release. Please, replace it with int getNumChildren().
BodyCloth Class
UNIGINE | UNIGINE 2 |
---|---|
int getNumTriangles() | int getNumIndices () |
int getTriangleParticle(int num, int index) | int getParticleIndex(int num) |
BodyRail Class
The BodyRail class has been renamed BodyPath.
UNIGINE | UNIGINE 2 |
---|---|
string getSplineName() | string getPathName() |
void setSplineName(string name) | void setPathName(string name, int dynamic) |
New Functions
Shape Class
UNIGINE | UNIGINE 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_MESH | Removed |
Remarks:
- The result is put into an instance of the PhysicsIntersection or PhysicsIntersectionNormal class.
Joint Class
UNIGINE | UNIGINE 2 |
---|---|
JOINT_RAIL | JOINT_PATH |
JointRail Class
The JointRail class has been renamed JointPath.
Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter