unreal.AnimDatabaseFrameAttributeFunction_ContactCurve

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

Bases: AnimDatabaseFrameAttributeFunction

Computes a contact curve attribute

C++ Source:

  • Plugin: AnimDatabase

  • Module: AnimDatabase

  • File: AnimDatabaseFrameAttribute.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bone_name (Name): [Read-Write] Name of the bone to compute the contact state for

  • filter_curve (bool): [Read-Write] If to filter the curve

  • height_threshold (float): [Read-Write] Maximum height (in cm) for which the bone can be considered in contact

  • majority_vote_filter_width (int32): [Read-Write] Filter width (in frames) for the majority vote filter used to remove very short contact transitions. Contact periods (or non-contact periods) less than half this duration will be removed.

  • smooth_curve (bool): [Read-Write] If to smooth the curve

  • smoothing_amount (float): [Read-Write] Amount of smoothing to apply to the resulting contact curve (in frames)

  • velocity_threshold (float): [Read-Write] Maximum velocity (in cm/s) for which the bone can be considered in contact