Jump to content

Newton Dynamics Debugging


martyj
 Share

Recommended Posts

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.

newtoncrash.png

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...