A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Julio Jerez » Mon May 02, 2016 7:04 pm
try using the player controller it gives you a big head star.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Spek » Tue May 03, 2016 6:06 pm
I could do that, it's just that I'm wondering what the heck could causing the upVector suddenly not working anymore, before I ride on on (my) broken code. My guess is yet another mismatch between the DLL & the Pascal header (or parameters I pass), but I have a hard time finding it.
So just to be sure; is there anything in particular that can cause UpVector joints to stop working or act badly? What happens is that the player-or any other object- just tumbles, and again seems to fall through the floor sometimes (no scaling used btw). Creating the joint does something but definitely not what it should do. Without the joint stuff works, except that it tumbles of course.
- edit
Just tried to make an upVector on every body in the Sandbox "ScaledCollision" demo. Following the code, it seems to always throw an exception here:
- Code: Select all
PhysicsUtils.cpp
NewtonBody* CreateSimpleBody (NewtonWorld* const world, void* const userData, dFloat mass, const dMatrix& matrix, NewtonCollision* const collision, int materialId)
{
... standard code
float dir[3] = { 0, 1, 0 };
NewtonConstraintCreateUpVector(world, dir, rigidBody);
...
}
// leads me to -->
void dgBilateralConstraint::SetPivotAndPinDir(const dgVector &pivot, const dgVector &pinDirection)
{
dgAssert (0);
// CalculateMatrixOffset (pivot, pinDirection, m_localMatrix0, m_localMatrix1);
}
Could it be that my code bumps into this exception - but since its a DLL it just goes on instead of crashing?
Last edited by
Spek on Tue May 03, 2016 6:51 pm, edited 1 time in total.
-
Spek
-
- Posts: 66
- Joined: Sat Oct 04, 2008 8:54 am
by Julio Jerez » Tue May 03, 2016 6:45 pm
it should work, Like I said, try putting the code out use to set up the player in he sandbox, maybe I can figure out what is wrong.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Spek » Tue May 03, 2016 6:52 pm
See -edit- one post earlier. We posted (almost) simultanously

-
Spek
-
- Posts: 66
- Joined: Sat Oct 04, 2008 8:54 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests