Simplified code.
Unit viewing is calculated by using box2d tensor.