I am attempting to use Kinect V2 for motion capture in blender. After playing around with locations and rotations of bones I finally found out what was causing the unintended contortions in my mesh, but one problem still remains. The character's hip region is deformed but the rest of the character is fine, so I'm not sure what is causing this. Pictures are below:
Here is the link to the blender file: https://drive.google.com/file/d/0BzB2Ay4lZC0ocnM5TFIyWm84cUU/view?usp=sharing .