Boatdrag
Overview
The Boatdrag component is responsible for storing and managing physics-related properties for boat entities. These properties, including drag, velocity modifiers, and sail force multipliers, are used by the game's physics engine to calculate a boat's movement and handling on the water.
Dependencies & Tags
None identified.
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
drag | number | 0 | The base drag or resistance value of the boat against the water. |
max_velocity_mod | number | 1 | A multiplier affecting the boat's maximum achievable velocity. |
forcedampening | number | 0 | A value used to apply a dampening force, slowing the boat down. |
sailforcemodifier | number | 1 | A multiplier that affects the force generated by the boat's sail. |
Main Functions
GetDebugString()
- Description: Returns a formatted string containing the current values of the component's main physics properties. This is primarily used for debugging purposes.
- Parameters: None.