Skip to content

Bug: Head rotation does not work #327

@Jeka8833

Description

@Jeka8833

Reproduction:

using VRCFaceTracking;

namespace TestModule;

public class TestModule : ExtTrackingModule
{
    public override (bool SupportsEye, bool SupportsExpression) Supported => (true, true);

    public override (bool eyeSuccess, bool expressionSuccess) Initialize(bool eyeAvailable, bool expressionAvailable)
    {
        ModuleInformation.Name = "Example Module";

        return (eyeAvailable, expressionAvailable);
    }

    public override void Update()
    {
        var random = new Random();
        UnifiedTracking.Data.Head.HeadPitch = (float)random.NextDouble();
        UnifiedTracking.Data.Head.HeadRoll = (float)random.NextDouble();
        UnifiedTracking.Data.Head.HeadYaw = (float)random.NextDouble();
        
        UnifiedTracking.Data.Head.HeadPosX = (float)random.NextDouble();
        UnifiedTracking.Data.Head.HeadPosY = (float)random.NextDouble();
        UnifiedTracking.Data.Head.HeadPosZ = (float)random.NextDouble();


        Thread.Sleep(1000);
    }

    public override void Teardown()
    {
    }
}

Expected Behavior:
It is expected that the avatar's head will move.

Actual Behavior:
The avatar's head does not rotate (move) using the module, but it can be rotated in the calibration menu (Parameter Adjustment).

Environment:
Avatar: https://vrchat.com/home/avatar/avtr_7b217580-e724-452f-8dca-7778738450cc
VRCFT Version: 5.4.0.1 (Steam Release)
Operating System: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions