martyj Posted November 14, 2017 Share Posted November 14, 2017 I was wondering if anyone has any tips for debugging newton dynamics? My game is crashing when I call Entity::Turn on a Model that has Rigid Phsyics, box shape, and a mass of 60. Vec3 posit = this->GetEntity()->GetPosition(true); Vec3 navPoint = this->nextNavPathPoint; posit.y = 0; navPoint.y = 0; double angle = Math::ACos(posit.Dot(navPoint)/posit.Length()); this->GetEntity()->Turn(0, angle, 0, true); See attachment for my stack trace. I'll try workup a demo tomorrow which has the same problem. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 14, 2017 Share Posted November 14, 2017 While this won't help with debugging or why it's crashing, I thought you were supposed to use physics commands for physics objects, like SetOmega. Quote Link to comment Share on other sites More sharing options...
martyj Posted November 14, 2017 Author Share Posted November 14, 2017 11 hours ago, gamecreator said: While this won't help with debugging or why it's crashing, I thought you were supposed to use physics commands for physics objects, like SetOmega. That very well could be the case, but how do we know which functions to use? Is Entity::AlignToVector a physics function? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 14, 2017 Share Posted November 14, 2017 Yeah. The old documentation was much more clear about this. The Entity page used to have them in separate sections. Quote Link to comment Share on other sites More sharing options...
martyj Posted November 15, 2017 Author Share Posted November 15, 2017 http://web.archive.org/web/20130307233427/http://www.leadwerks.com:80/werkspace/page/documentation/_/command-reference/entity/ 1 Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 15, 2017 Share Posted November 15, 2017 Good thought. Here's the most recent one that didn't give me an error: http://web.archive.org/web/20150426173346/http://www.leadwerks.com:80/werkspace/page/documentation/_/command-reference/entity 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted November 17, 2017 Share Posted November 17, 2017 You can now post your game on the Newton forum and get help directly from the author of Newton, since the physics DLLs are now debuggable. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.