A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by drawtree » Sun May 08, 2011 2:33 am
I'm making debug drawer. And now I'm querying body and collision informations from Newton world. And I met a wall.
I couldn't find NewtonCollisionInfoRecord.m_collisionType constants. I tracked them and finally found they're defined in dgCollisionID in dgCollision.h. However, this is not exposed via C API. It looks no way to retrieve this information.
I copied it to reference values. Is there another way via C API?
Eonil Hoon Hwangbo
An application developer for iOS / Mac OS X.
-
drawtree
-
- Posts: 21
- Joined: Thu May 05, 2011 5:11 am
by Markus » Sun May 08, 2011 6:25 am
They are defined in the header:
- Code: Select all
#define SERIALIZE_ID_BOX 0
#define SERIALIZE_ID_CONE 1
#define SERIALIZE_ID_SPHERE 2
#define SERIALIZE_ID_CAPSULE 3
#define SERIALIZE_ID_CYLINDER 4
#define SERIALIZE_ID_COMPOUND 5
#define SERIALIZE_ID_CONVEXHULL 6
#define SERIALIZE_ID_CONVEXMODIFIER 7
#define SERIALIZE_ID_CHAMFERCYLINDER 8
#define SERIALIZE_ID_TREE 9
#define SERIALIZE_ID_NULL 10
#define SERIALIZE_ID_HEIGHTFIELD 11
#define SERIALIZE_ID_USERMESH 12
#define SERIALIZE_ID_SCENE 13
#define SERIALIZE_ID_COMPOUND_BREAKABLE 14
-
Markus
-
- Posts: 52
- Joined: Sat Mar 19, 2011 6:31 am
by drawtree » Wed May 11, 2011 6:09 am
Thanks. I couldn't thought it's related to the values.
Eonil Hoon Hwangbo
An application developer for iOS / Mac OS X.
-
drawtree
-
- Posts: 21
- Joined: Thu May 05, 2011 5:11 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 7 guests