// Filename: odeUtil.h // Created by: joswilso (27Dec06) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #ifndef ODEUTIL_H #define ODEUTIL_H #include "pandabase.h" #include "typedObject.h" #include "luse.h" #include "ode_includes.h" #include "odeJointCollection.h" class OdeBody; class OdeJoint; //////////////////////////////////////////////////////////////////// // Class : OdeUtil // Description : //////////////////////////////////////////////////////////////////// class EXPCL_PANDAODE OdeUtil { PUBLISHED: static OdeJoint get_connecting_joint(const OdeBody &body1, const OdeBody &body2); static OdeJointCollection get_connecting_joint_list(const OdeBody &body1, const OdeBody &body2); static int are_connected(const OdeBody &body1, const OdeBody &body2); static int are_connected_excluding(const OdeBody &body1, const OdeBody &body2, const int joint_type); static dReal OC_infinity; // RAU we can't access OC_infinity as constants are not exposed in python static dReal get_infinity() {return OC_infinity;}; static int rand_get_seed() {return dRandGetSeed();}; static void rand_set_seed(int s) {dRandSetSeed(s);}; }; #endif