Added length function to Vector and remove buffer to PhysicsManager