Ball joint limits bug using beta 2.05

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Ball joint limits bug using beta 2.05

Postby Leadwerks » Fri Aug 07, 2009 4:57 pm

The pin argument for the ball joint limits command does not appear to work correctly. If I set the pin to (0,-1,0) and the max cone angle to 45, it works as expected. In this demo I set the pin to (1,0,0) and the movement is not centered around that vector; It doesn't even move in a cone shape:
http://www.leadwerks.com/post/balljointlimitsbug.zip

The source code is the bjl.bmx file.
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: Ball joint limits bug using beta 2.05

Postby Julio Jerez » Fri Aug 07, 2009 5:27 pm

you are using a Build in joint which is not longer reliable in 2.00
can't you use a 6DOF, it can reproduce that joint very eassy.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Ball joint limits bug using beta 2.05

Postby Leadwerks » Fri Aug 07, 2009 5:43 pm

Do you have code for a custom 6DOF ball and socket joint with limits?
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: Ball joint limits bug using beta 2.05

Postby tiresius » Fri Aug 07, 2009 6:08 pm

Are the built in joints becoming deprecated / unsupported in Newton 2.0 in favor of the new joint library? That would be good to know. :)
An apple fell on my head and I haven't been the same since...
tiresius
 
Posts: 32
Joined: Tue Nov 09, 2004 9:15 pm

Re: Ball joint limits bug using beta 2.05

Postby Julio Jerez » Fri Aug 07, 2009 8:07 pm

Oh I see it is difficult to make cone and twist the limits for a ball and socket with the 6DF.

BallAndSocked with limits is in the jointLibray, I will add it to the C inerface this weekend,
Plus I will add some more too.

tiresius wrote:Are the built in joints becoming deprecated / unsupported in Newton 2.0 in favor of the new joint library? That would be good to know. :)

I did not spent time on then, I just change the inetface so that they continue compiling.
It is why I added the Joint Library which replicates all of the internal joints.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Ball joint limits bug using beta 2.05

Postby Leadwerks » Fri Aug 07, 2009 8:53 pm

Thanks.

This is what it will be used for:
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: Ball joint limits bug using beta 2.05

Postby Julio Jerez » Fri Aug 07, 2009 9:57 pm

Are you using BallAndSocket joints for RagDoll?

there is a Rag doll Joint in the joint Library that is very nice to set limbs.
It also has correction to prevent dismembering.
It is cool because it have ways to set limit better than using plain BallAndCockets and hinges
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Ball joint limits bug using beta 2.05

Postby Leadwerks » Fri Aug 07, 2009 11:24 pm

I need hinge and ball limits to be working properly, anyways, because they are features my engine is supposed to support. Hinge limits are working fine as of 2.05.

I would really like slider limits, too, so I can make a desk with drawers that can pull out and stop.
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: Ball joint limits bug using beta 2.05

Postby Julio Jerez » Sun Aug 09, 2009 2:22 pm

download beta 2.06, it adds BallAndSockect, and Slider joint to the C inteface of joint library
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Ball joint limits bug using beta 2.05

Postby Leadwerks » Sun Aug 09, 2009 8:59 pm

Thanks, both are working great now.
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 34 guests