A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by JoeWright » Sun Feb 08, 2009 8:09 pm
I'm trying to recreate my code in the style of the demos so it will be easy for Julio to test a joint of mine (because its a bit wrong).
Everything's going well except that torques and calls to NewtonUserJointAddAngularRow are going in the opposite sense to my original code. Although this isn't a big deal, I'd like to track down the reason so that everything matches exactly. As far as I can see, everything does match except for this.
If I remember correctly I used CustomCorkScrew.cpp as a template.
Can anyone point me towards places to look. I'm feeling a bit dumb.
Joe
-
JoeWright
-
- Posts: 69
- Joined: Sat Apr 30, 2005 1:42 pm
by Julio Jerez » Sun Feb 08, 2009 8:34 pm
if you flip the pin direction it will match. I think
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by JoeWright » Mon Feb 09, 2009 6:39 am
Its happening with NewtonBodyAddTorque as well (so not just a case of pin direction in the joint).
I'm guessing I've got a -1 creeping in somewhere to my original code. Maybe its how I've hocked up Newton and Irrlicht. I'll do some more investigating...
-
JoeWright
-
- Posts: 69
- Joined: Sat Apr 30, 2005 1:42 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 9 guests