| 1 |
/************************************************************************* |
| 2 |
* * |
| 3 |
* Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * |
| 4 |
* All rights reserved. Email: [email protected] Web: www.q12.org * |
| 5 |
* * |
| 6 |
* This library is free software; you can redistribute it and/or * |
| 7 |
* modify it under the terms of EITHER: * |
| 8 |
* (1) The GNU Lesser General Public License as published by the Free * |
| 9 |
* Software Foundation; either version 2.1 of the License, or (at * |
| 10 |
* your option) any later version. The text of the GNU Lesser * |
| 11 |
* General Public License is included with this library in the * |
| 12 |
* file LICENSE.TXT. * |
| 13 |
* (2) The BSD-style license that is included with this library in * |
| 14 |
* the file LICENSE-BSD.TXT. * |
| 15 |
* * |
| 16 |
* This library is distributed in the hope that it will be useful, * |
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * |
| 19 |
* LICENSE.TXT and LICENSE-BSD.TXT for more details. * |
| 20 |
* * |
| 21 |
*************************************************************************/ |
| 22 |
|
| 23 |
|
| 24 |
#include <ode/odeconfig.h> |
| 25 |
#include "config.h" |
| 26 |
#include "null.h" |
| 27 |
#include "joint_internal.h" |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
//**************************************************************************** |
| 32 |
// null joint |
| 33 |
dxJointNull::dxJointNull( dxWorld *w ) : |
| 34 |
dxJoint( w ) |
| 35 |
{ |
| 36 |
} |
| 37 |
|
| 38 |
void |
| 39 |
dxJointNull::getSureMaxInfo( SureMaxInfo* info ) |
| 40 |
{ |
| 41 |
info->max_m = 0; |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
void |
| 46 |
dxJointNull::getInfo1( dxJoint::Info1 *info ) |
| 47 |
{ |
| 48 |
info->m = 0; |
| 49 |
info->nub = 0; |
| 50 |
} |
| 51 |
|
| 52 |
|
| 53 |
void |
| 54 |
dxJointNull::getInfo2( dReal /*worldFPS*/, dReal /*worldERP*/, |
| 55 |
int rowskip, dReal *J1, dReal *J2, |
| 56 |
int pairskip, dReal *pairRhsCfm, dReal *pairLoHi, |
| 57 |
int *findex ) |
| 58 |
{ |
| 59 |
dDebug( 0, "this should never get called" ); |
| 60 |
} |
| 61 |
|
| 62 |
dJointType |
| 63 |
dxJointNull::type() const |
| 64 |
{ |
| 65 |
return dJointTypeNull; |
| 66 |
} |
| 67 |
|
| 68 |
size_t |
| 69 |
dxJointNull::size() const |
| 70 |
{ |
| 71 |
return sizeof( *this ); |
| 72 |
} |
| 73 |
|
| 74 |
|