unreal.PVGravityParams

class unreal.PVGravityParams

Bases: StructBase

PVGravity Params

C++ Source:

  • Plugin: ProceduralVegetationEditor

  • Module: ProceduralVegetation

  • File: PVGravity.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angle_correction (float): [Read-Write] Preserves initial branch angle during bending.

    Bias that resists over-bending by maintaining the original branching angle. Increase to keep initial structure while still responding to forces.

  • direction (Vector3f): [Read-Write] Direction vector used for gravity.

    Defines the gravity vector for bending (e.g., world down or a custom direction). Only applies in gravity mode.

  • gravity (float): [Read-Write] Strength of gravity/phototropic effect.

    Sets how strongly branches bend under gravity or orient toward light in phototropic mode. Higher values yield more pronounced curvature.

  • mode (GravityMode): [Read-Write] Selects gravity behavior (bending mode).

    Chooses how bending is applied: Gravity (downward pull) or Phototropic (growth toward light/up). Affects the direction and style of branch curvature.