Ejemplo n.º 1
0
        public override void GetPickedBlock(PickedPos pos)
        {
            Vector3 eyePos = player.EyePosition;
            Vector3 dir    = Utils.GetDirVector(player.HeadYRadians, player.HeadXRadians);
            float   reach  = game.LocalPlayer.ReachDistance;

            Picking.CalculatePickedBlock(game, eyePos, dir, reach, pos);
        }
Ejemplo n.º 2
0
        public override void GetPickedBlock(PickedPos pos)
        {
            Vector3 dir = GetDirVector();
            Vector3 eyePos = player.EyePosition;
            int     adjCamX, adjCamZ;

            GetCamChunk(out adjCamX, out adjCamZ);
            eyePos.X -= adjCamX;
            eyePos.Z -= adjCamZ;
            float reach = game.LocalPlayer.ReachDistance;

            Picking.CalculatePickedBlock(game, eyePos, dir, reach, pos);
        }