Flow Physics
The Flow Physics feature in Oceanology allows for the simulation of fluid dynamics that affect objects in the water, such as ships, boats, or other floating actors. This feature is particularly useful for creating realistic interactions between the water and any object that needs to react naturally to water currents and impulses.
Overview of Flow Physics
To use Flow Physics, follow these steps:
-
Add the Flow Physics Example Actor
- Drag the
BP_FlowPhysicsExample
actor into your level to serve as a base for applying flow effects.
- Drag the
-
Tagging the Target Object
- Create a tag (e.g.,
ExampleShip
) and assign it to the actor you want to be affected by the Flow Physics spline. In this example, the target actor isBP_BattleShip_BoxCollision
.
- Create a tag (e.g.,
-
Assigning the Spline
- The spline defines the flow direction and strength. Once set, the tagged actor will move along the spline, influenced by the flow's impulse, simulating realistic water current behavior.
The blueprint setup, as shown in the example, ensures that all actors with the specified tag will interact with the Flow Physics system. The OceanBuoyancyComponent
is used to apply the forces, making the actor follow the currents defined by the spline. This setup is ideal for scenarios such as ships navigating through ocean currents or any floating object affected by flowing water.
Summary
With Flow Physics, Oceanology provides a robust solution for simulating water movement in a dynamic and realistic manner, enhancing the interaction between water bodies and objects within your Unreal Engine projects.