User Tools


Crest Setup

Screenshot of demo scene for DWP2 with Crest.


Dynamic Water Physics 2 is compatible with Crest v10 or newer. Older versions have different API.

Here are the steps needed to set up DWP2 with Crest:

  1. Download Crest and Crest-ExampleContent from git (link).
  2. Import both into Unity.
  3. Under Edit ⇒ Project Settings ⇒ Player ⇒ Scripting Define Symbols add DWP_CREST. If a symbol already exists just separate them using ;, e.g.: UNITY_POST_PROCESSING_STACK_V2;CROSS_PLATFORM_INPUT;DWP_CREST.
  4. Open Crest-Examples ⇒ Main ⇒ Scenes ⇒ main scene.
  5. Remove the existing boat from the scene.
  6. Select Ocean object and tag it Water.
  7. Add WaterObjectManager to any object in the scene and make sure Query Water Heights is ticked.
  8. Drag Racer prefab into the scene.
  9. Press play. The boat will now float and follow the waves properly. If this is not the case check that the console states DWP: Using Crest and there are no errors or warnings.