RigidBodyPoseOrientationManager

public class RigidBodyPoseOrientationManager<Skeleton> where Skeleton : SkeletonType
  • Degree threshold for flipping pose. If the absolute value of the angle of the previous pose direction and current pose direction is greater than the threshold, the pose will be flipped.

    Declaration

    Swift

    public internal(set) var flipOrientationDegrees: Double
  • If true, previousPose flipped from its original orientation.

    Declaration

    Swift

    public private(set) var previousPoseFlipped: Bool
  • Previous pose after orientation applied.

    Declaration

    Swift

    public private(set) var previousPose: Pose<Skeleton>?
  • Initialize RigidPoseOrientationManager

    Declaration

    Swift

    public init(flipOrientationDegrees: Double)

    Parameters

    flipOrientationDegrees

    Degree threshold for flipping orientation of pose.

  • Orient pose according to previous pose and current pose direction.

    The current pose is compared against the previously oriented pose.

    Declaration

    Swift

    public func orientPose(_ pose: Pose<Skeleton>) -> Pose<Skeleton>

    Parameters

    pose

    Custom pose to align with previous pose.

    Return Value

    Oriented pose.