Rudder is used for steering the ship.
Each rudder is a WaterObject and controls the ship through regular interaction with water.
Invisible rudder can be used in case the visual one is too small. To achieve this parent a very thin Cube to the rudder, use WaterObjectWizard to set it up, resize it to the desirable scale and finally disable MeshFilter. This will result in a rudder that interacts with water but is not visible.
Fields
RudderTransform
- the transform that will be rotated.
MaxAngle
- maximum angle of rudder rotation to each side (e.g. +/- 30).
RotationSpeed
- rotation speed in deg/s for the rudder.
LocalRotationAxis
- the local axis around which the RudderTransform
will be rotated.
Setup
Add a rudder to the ship if it does not already have one. This can be a primitive Cube scaled to a thin shape.
Assign the rudder transform (in this example the scaled cube) to the Rudder Transfrom
field.
Add WaterObject
component to the rudder so it too can interact with water.