McGee also provided eight rebounds and three blocks while Danilo hauled down seven boards for the Nuggets, who continued their post-season tune-up with a sixth win in eight games.
Denver holds the sixth seed in the Western Conference with two games remaining.
Orlando, meanwhile, needs one more victory to secure the East's sixth position.
Ryan Anderson led the Magic with 24 points and nine rebounds.
2014: NFL Cheerleaders [PHOTOS]
LeBron James reveals his new Nike shoes