plane2d.cpp   plane2d.cpp 
skipping to change at line 23 skipping to change at line 23
* (2) The BSD-style license that is included with this library in * * (2) The BSD-style license that is included with this library in *
* the file LICENSE-BSD.TXT. * * the file LICENSE-BSD.TXT. *
* * * *
* This library is distributed in the hope that it will be useful, * * This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
* LICENSE.TXT and LICENSE-BSD.TXT for more details. * * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
* * * *
*************************************************************************/ *************************************************************************/
#include "config.h"
#include "plane2d.h" #include "plane2d.h"
#include "joint_internal.h" #include "joint_internal.h"
//************************************************************************* *** //************************************************************************* ***
// Plane2D // Plane2D
/* /*
This code is part of the Plane2D ODE joint This code is part of the Plane2D ODE joint
by psero@gmx.de by psero@gmx.de
Wed Apr 23 18:53:43 CEST 2003 Wed Apr 23 18:53:43 CEST 2003
*/ */
skipping to change at line 57 skipping to change at line 58
dxJointPlane2D::dxJointPlane2D( dxWorld *w ) : dxJointPlane2D::dxJointPlane2D( dxWorld *w ) :
dxJoint( w ) dxJoint( w )
{ {
motor_x.init( world ); motor_x.init( world );
motor_y.init( world ); motor_y.init( world );
motor_angle.init( world ); motor_angle.init( world );
} }
void void
dxJointPlane2D::getSureMaxInfo( SureMaxInfo* info )
{
info->max_m = 6;
}
void
dxJointPlane2D::getInfo1( dxJoint::Info1 *info ) dxJointPlane2D::getInfo1( dxJoint::Info1 *info )
{ {
info->nub = 3; info->nub = 3;
info->m = 3; info->m = 3;
if ( motor_x.fmax > 0 ) if ( motor_x.fmax > 0 )
row_motor_x = info->m ++; row_motor_x = info->m ++;
if ( motor_y.fmax > 0 ) if ( motor_y.fmax > 0 )
row_motor_y = info->m ++; row_motor_y = info->m ++;
if ( motor_angle.fmax > 0 ) if ( motor_angle.fmax > 0 )
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/