[ODE] Fixing a body to a point

Vicente Conejeros vicenteconejeros at hotmail.com
Sat Dec 17 21:29:56 MST 2005


it's simple just use a ballandsocket joint and attach the body and the static environment.

use the anchor as the point

the code look something like that

dBodyID b1;
dJointID ball;
....
init the body and other things here xD
....
ball=dJointCreateBall();
dJointAttach(ball,b1,0);
dJointSetBallAnchor(ball,pointx,pointy,pointz);

i do that and here is an image
http://photos1.blogger.com/blogger/1171/1435/1600/Pheam13.jpg
  ----- Original Message ----- 
  From: Guru2012 
  To: ode at q12.org 
  Sent: Saturday, December 17, 2005 2:24 AM
  Subject: [ODE] Fixing a body to a point


  I am trying to implement a dangling pendulum fixed to a specific point.
  I searched this mailing list and found a mention of creating a ball joint attached to a null body. How would this work, and what would the code for such a thing look like?

  Thanks,
  Andrew


------------------------------------------------------------------------------


  _______________________________________________
  ODE mailing list
  ODE at q12.org
  http://q12.org/mailman/listinfo/ode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20051218/c432017c/attachment.htm


More information about the ODE mailing list