kylc/seve — Issue #13: Fix Bullet -> VertexGraph Compar in DefaultSoftBodyWorld
Author: kylc
Created: 2012-02-18 02:52:07+00:00
State: open

The following snippet won't work because of accuracy issues when scaling from longs to floats. This will need to be fixed for anything to work, really.

if (vertex.X == node.X.X / vertex.ScaleFactor
&& vertex.Y == node.X.Y / vertex.ScaleFactor
&& vertex.Z == node.X.Z / vertex.ScaleFactor)
{
node.Tag = vertex.Identifier;
}