A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by mfdesigner » Sun Mar 29, 2009 3:13 pm
Hi,
I am seeing this behavior below. Could it be a bug in Newton 2.0?
I have two tori attached to a weightless column using corkscrew joints.
Each torus has weight 3 unit and is subject to gravity.
When simulation starts, both falls naturally to the ground along the column.
I allow mouse to interact with the falling torus.
If I detect a mouse click on either of the tori, I freeze its simulation.
However, both tori freeze when I called NewtonBodySetFreezeState
for only one of the torus body.
What could be the problem?
Thanks,
mfdesigner
-
mfdesigner
-
- Posts: 7
- Joined: Sun Feb 08, 2009 7:07 pm
by Stucuk » Sun Mar 29, 2009 3:43 pm
Source code generaly helps people find the problem rather than a general description.
-
Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by mfdesigner » Sat Apr 04, 2009 4:42 pm
I think this is a bug in Newton 2.0.
In debugger, I have verified that when the NewtonSetFreezeState is called for one body.
All transform callbacks stop getting called and therefore all other bodies freeze.
However, I did find a work around by setting the MassMatrix of the body I want to freeze to zero and
thus achieve the same effect.
Thanks,
-
mfdesigner
-
- Posts: 7
- Joined: Sun Feb 08, 2009 7:07 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 22 guests