How to change the status of a object which has a joint.

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to change the status of a object which has a joint.

Postby forestluo » Thu Sep 01, 2011 6:17 am

I defined a object with mass = 1.0 unit. I created a ballsoket joint and defined a max cone angle. I set joint's child as this object and left its parent as NULL.
I found that : the object would not be updated, If I attached it with the joint. The update callback took no effect.

So what should I do ?

I supposed the position of object would be updated whenever I attached the joint or not.
Or I should get the relative Eular angle from joint and change the position of object ?

Forest Luo
forestluo
 
Posts: 13
Joined: Mon Aug 15, 2011 5:03 am

Re: How to change the status of a object which has a joint.

Postby Julio Jerez » Thu Sep 01, 2011 1:12 pm

static objects do no get updates. nake sure your obuect is not static.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: How to change the status of a object which has a joint.

Postby forestluo » Thu Sep 01, 2011 9:05 pm

Julio Jerez wrote:static objects do no get updates. nake sure your obuect is not static.


It is not a static object. I put a box over it and let it drop down to drive joint rotate.

By the way : How to post a picture or movie with the topic ?
forestluo
 
Posts: 13
Joined: Mon Aug 15, 2011 5:03 am

Re: How to change the status of a object which has a joint.

Postby Julio Jerez » Thu Sep 01, 2011 10:16 pm

youtube
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: How to change the status of a object which has a joint.

Postby JoeJ » Fri Sep 02, 2011 5:18 am

Maybe the body simply fell in sleep mode?
You can check by calling NewtonBodySetAutoSleep (objectBody, 0) at creation.
User avatar
JoeJ
 
Posts: 1489
Joined: Tue Dec 21, 2010 6:18 pm

Re: How to change the status of a object which has a joint.

Postby forestluo » Sat Sep 03, 2011 11:44 am

Sorry, it is my fault.

I checked my program over and over, and found out that was my own problem.
It is my fault to remove the jointed object from the updating list when creating a joint . So it is still there.

Thanks a lot !

Forest Luo
forestluo
 
Posts: 13
Joined: Mon Aug 15, 2011 5:03 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest