Changed: Header inclusion order corrected
[ode.git] / ode / src / joints / null.cpp
blob612f54600155fb512aebb83a23209bdcb2001da1
1 /*************************************************************************
2 * *
3 * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org 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 *************************************************************************/
24 #include "config.h"
25 #include "null.h"
26 #include "joint_internal.h"
30 //****************************************************************************
31 // null joint
32 dxJointNull::dxJointNull( dxWorld *w ) :
33 dxJoint( w )
37 void
38 dxJointNull::getSureMaxInfo( SureMaxInfo* info )
40 info->max_m = 0;
44 void
45 dxJointNull::getInfo1( dxJoint::Info1 *info )
47 info->m = 0;
48 info->nub = 0;
52 void
53 dxJointNull::getInfo2( dxJoint::Info2 *info )
55 dDebug( 0, "this should never get called" );
58 dJointType
59 dxJointNull::type() const
61 return dJointTypeNull;
64 size_t
65 dxJointNull::size() const
67 return sizeof( *this );