Class ODE::FixedJoint
In: ext/body.c  (CVS)
Parent: ODE::Joint

Methods

fix   new  

Public Class methods

ODE::FixedJoint#initialize( world, jointGroup ) — Create and return a new ODE::FixedJoint.

[Source]

/*
 * ODE::FixedJoint#initialize( world, jointGroup )
 * --
 * Create and return a new ODE::FixedJoint.
 */
static VALUE
ode_fixedJoint_init( argc, argv, self )
	 int	argc;
	 VALUE	*argv, self;
{
	return ode_joint_construct( argc, argv, self, dJointCreateFixed, 0 );
}

Public Instance methods

ODE::FixedJoint#fix() — Call this on the fixed joint after it has been attached to remember the current desired relative offset between the bodies.

[Source]

/*
 * ODE::FixedJoint#fix()
 * --
 * Call this on the fixed joint after it has been attached to remember the
 * current desired relative offset between the bodies.
 */
static VALUE
ode_fixedJoint_fix( self )
	 VALUE self;
{
	ode_JOINT *ptr = get_joint( self );
	dJointSetFixed( ptr->id );

	return Qtrue;
}

[Validate]