I believe the developer had to create a custom physics engine to support 4D space [2].
[1] https://4dtoys.com/
[2] https://marctenbosch.com/news/2017/06/4d-toys-a-box-of-four-...