Object / Polygon based gravity

Hello everyone,

Working on an Inception-like VR demo scene, and from what I heard, the physics engine only works on the Z axis. Is there a way to pull objects / pawns to polygons or other objects? It would be nice / helpful if I could set up “gravity boxes” which apply the specific gravity force only when inside the box.

The default gravity works on the Z-axis, but you can always turn that off and add forces manually to simulate any number of gravity sources. You can make a simple component with things like gravity strength, fall-off, and position. Then you just have to add the force manually every tick, and you can make collision meshes to flip gravity on and off. Though you may need to add a bit of extra logic to put objects to sleep when they have stopped moving. The physics engine will do that automatically with normal gravity, but I don’t think it will when you are applying your own forces.

There is also a problem with the default character always orienting itself upright along the Z axis. The create of Adventure Kit has been working on modifying it to work with an arbitrary gravity direction if you want to check that out. It should work with other simple Pawns and regular objects out of the box.