Ejemplo n.º 1
0
        //Bullet calls this so I can copy bullet data to unity
        public override void SetWorldTransform(ref BM.Matrix m)
        {
            double timeStamp = -1;

            if (threadHelper != null)
            {
                timeStamp = threadHelper.TotalSimulationTime;
            }
            lock (lck)
            {
                previousBulletTransform = lastBulletTransform;
                lastBulletTransform     = new BulletTransformData(m, timeStamp);
                mustUpdateTransform     = true;
            }
        }