unreal.HairSimulationSetup

class unreal.HairSimulationSetup(reset_simulation: bool = False, debug_simulation: bool = False, local_simulation: bool = False, linear_velocity_scale: float = 0.0, angular_velocity_scale: float = 0.0, local_bone: str = '', teleport_distance: float = 0.0)

Bases: StructBase

Hair Simulation Setup

C++ Source:

  • Plugin: HairStrands

  • Module: HairStrandsCore

  • File: GroomAssetPhysics.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angular_velocity_scale (float): [Read-Write] The amount of angular velocities sent to the local groom space from the reference bone

  • debug_simulation (bool): [Read-Write] Boolean to make the simulation strands visible

  • linear_velocity_scale (float): [Read-Write] The amount of linear velocities sent to the local groom space from the reference bone

  • local_bone (str): [Read-Write] Bone used for the simulation local space

  • local_simulation (bool): [Read-Write] Strands simulation is done in local space

  • reset_simulation (bool): [Read-Write] Boolean to control if we want to reset trhe simulation at some point in time

  • teleport_distance (float): [Read-Write] Teleport distance threshold to reset the simulation

property angular_velocity_scale: float

[Read-Write] The amount of angular velocities sent to the local groom space from the reference bone

Type:

(float)

property debug_simulation: bool

[Read-Write] Boolean to make the simulation strands visible

Type:

(bool)

property linear_velocity_scale: float

[Read-Write] The amount of linear velocities sent to the local groom space from the reference bone

Type:

(float)

property local_bone: str

[Read-Write] Bone used for the simulation local space

Type:

(str)

property local_simulation: bool

[Read-Write] Strands simulation is done in local space

Type:

(bool)

property reset_simulation: bool

[Read-Write] Boolean to control if we want to reset trhe simulation at some point in time

Type:

(bool)

property teleport_distance: float

[Read-Write] Teleport distance threshold to reset the simulation

Type:

(float)