Update PhysicsObject.java

Added spherical to cartesian transformation