unreal.PhysicsDrivenSwimmingMode

class unreal.PhysicsDrivenSwimmingMode(outer: Object | None = None, name: Name | str = 'None')

Bases: SwimmingMode

PhysicsDrivenSwimmingMode: Override base kinematic Swimming mode for physics based motion.

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: PhysicsDrivenSwimmingMode.h

Editor Properties: (see get_editor_property/set_editor_property)

  • shared_settings_class (type(Class)): [Read-Write] Settings object type that this mode depends on. May be shared with other movement modes. When the mode is added to a Mover Component, it will create a shared instance of this settings class.

  • surface_swimming_water_control_settings (SwimmingControlSettings): [Read-Write]

  • target_height (float): [Read-Write] Target height for the character. This is the desired distance from the center of the capsule to the floor

  • transitions (Array[BaseMovementModeTransition]): [Read-Write] Transition checks for the current mode. Evaluated in order, stopping at the first successful transition check