Setting mass after LocalInertiaTensorInverse - error
Posted: Sun Jan 29, 2012 3:15 pm
I'm getting a weird error and I can't figure out what's causing it.
If I set LocalInertiaTensorInverse to Matrix3x3() and then change the Mass value I get the following error:
"Function does not accept floating point Not-a-Number values." in GetBoundingBox of the BoxShape class.
The stack trace is as follows:
at System.Math.Sign(Single value)
at BEPUphysics.CollisionShapes.ConvexShapes.BoxShape.GetBoundingBox(RigidTransform& shapeTransform, BoundingBox& boundingBox)
at BEPUphysics.Collidables.MobileCollidables.ConvexCollidable`1.UpdateBoundingBoxInternal(Single dt)
at BEPUphysics.Collidables.MobileCollidables.EntityCollidable.UpdateBoundingBox(Single dt)
at BEPUphysics.OtherSpaceStages.BoundingBoxUpdater.UpdateSingleThreaded()
at BEPUphysics.MultithreadedProcessingStage.Update()
at BEPUphysics.Space.DoTimeStep()
at BEPUphysics.Space.Update()
I've tried debugging (in single threaded mode) but it doesn't seem to occur when I do, which makes me think it's a timing issue.
Any ideas?
Thanks.
CJ.
If I set LocalInertiaTensorInverse to Matrix3x3() and then change the Mass value I get the following error:
"Function does not accept floating point Not-a-Number values." in GetBoundingBox of the BoxShape class.
The stack trace is as follows:
at System.Math.Sign(Single value)
at BEPUphysics.CollisionShapes.ConvexShapes.BoxShape.GetBoundingBox(RigidTransform& shapeTransform, BoundingBox& boundingBox)
at BEPUphysics.Collidables.MobileCollidables.ConvexCollidable`1.UpdateBoundingBoxInternal(Single dt)
at BEPUphysics.Collidables.MobileCollidables.EntityCollidable.UpdateBoundingBox(Single dt)
at BEPUphysics.OtherSpaceStages.BoundingBoxUpdater.UpdateSingleThreaded()
at BEPUphysics.MultithreadedProcessingStage.Update()
at BEPUphysics.Space.DoTimeStep()
at BEPUphysics.Space.Update()
I've tried debugging (in single threaded mode) but it doesn't seem to occur when I do, which makes me think it's a timing issue.
Any ideas?
Thanks.
CJ.