Closed aymen157 closed 4 months ago
Repeating from the discord chat for others: The orientation quaternion is default initialized and so has zero length. Only unit length quaternions are orientations, so a zero length quaternion causes an explosion.
Using a constructor like new RigidPose(ballPosition)
or the implicit conversions like Pose = ballPosition
would avoid this by initializing the orientation to identity.
This kind of bug is often easier to isolate when running the source in debug mode; there are tons of asserts that will catch oopsies like this.
same question as this old one (2011) : https://forum.bepuentertainment.com/viewtopic.php?t=1467
hello. kind of new to bepu. im struggling building a simple ball that falls onto a plane. the problem is the ball falls ok, but then when it hits the plane (exactly when narrow phase called) its position value goes to <Nan,Nan,Nan>. why so? (im using the Demo callbacks from the git) here's the function