Ball joint suggestion

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Ball joint suggestion

Postby Leadwerks » Thu Jan 25, 2018 12:37 pm

This is a modification I made so that ball joints can have limits enabled or disabled:
Code: Select all
void dCustomLimitBallAndSocket::SubmitConstraints(dFloat timestep, int threadIndex)
{
   if (!m_limitsenabled) return dCustomBallAndSocket::SubmitConstraints(timestep, threadIndex);
User avatar
Leadwerks
 
Posts: 569
Joined: Fri Oct 27, 2006 2:54 pm

Re: Ball joint suggestion

Postby Julio Jerez » Thu Jan 25, 2018 12:43 pm

That will not work in the place, it need to cal the base class for the three linear joints that kelp the point together.
Move the line to after the call to the base class.

The point on the joints is the you can subclass from them and made you own versions.
If if accept every single particular suggestion the they will very soon become a complete mess. What they are is base point from where to start.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 10 guests