unreal.AnimDatabaseFramesFunction_ContactFrames

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

Bases: AnimDatabaseFramesFunction

Computes contact frames

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

  • event_filter (AnimDatabaseFrameRangesFunction): [Read-Write] If provided, will be used to filter the contact events

  • event_offset (float): [Read-Write] The amount of time before the contact (in seconds) to have the event

  • 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.

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