Exemplo n.º 1
0
 private static void ReadOtherMarket(Byte[] b, ref int offset, OtherMarker marker)
 {
     float[] pos = new float[3];
     Buffer.BlockCopy(b, offset, pos, 0, 4 * 3);
     offset      += 4 * 3;
     marker.pos.x = pos[0];
     marker.pos.y = pos[1];
     marker.pos.z = pos[2];
     //Debug.Log("marker ID: " + marker.ID + " is in: " + pos[0] + " " + pos[1] + " " + pos[2]);
 }
Exemplo n.º 2
0
        public bool InitializeMarkers()
        {
            _nRigidBodies = 0;
            for (int i = 0; i < 200; i++)
            {
                _rigidBody[i] = new RigidBody();
            }

            _nOtherMarkers = 0;
            for (int i = 0; i < 200; i++)
            {
                _otherMarkers[i] = new OtherMarker();
            }
            return(true);
        }