← All docs

Physics & NavMesh

Claunity can adjust global physics settings and bake the Unity NavMesh for AI navigation. It supports both the legacy NavMesh system and the new NavMesh Surface API (com.unity.ai.navigation package).


Physics settings

Change global gravity

"Set gravity to (0, -20, 0) for a heavier feel"

Reduce gravity for space game

"Set gravity to (0, -2, 0) for a low-gravity environment"

Change fixed timestep

"Set the fixed timestep to 0.01 for more precise physics simulation"

NavMesh

Bake the NavMesh

"Bake the NavMesh for the current scene"

Set up an AI agent

"Add a NavMeshAgent to the "Enemy" object with speed 4 and stopping distance 1.5"

Full NavMesh setup

"Mark the "Ground" and "Walkway" objects as Navigation Static and bake the NavMesh"

NavMesh Surface package

For the new NavMesh API, you need the AI Navigation package (com.unity.ai.navigation). Ask Claunity to install it: "Install the AI Navigation package".