Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Held objects cannot be rotated during Update #39

Open
daalta opened this issue Apr 5, 2021 · 1 comment
Open

Bug: Held objects cannot be rotated during Update #39

daalta opened this issue Apr 5, 2021 · 1 comment

Comments

@daalta
Copy link

daalta commented Apr 5, 2021

Tested on the Networking Beta branch

Rotating a held object is possible in VRChat, but not in CyanEmu.

The following snippet will not prevent an object from rotating in CyanEmu, but will work properly in-game.

private bool isHeld = false;

private void Update()
{
    if (isHeld)
    {
        // The important part! 
        transform.rotation = Quaternion.identity;
    }
}

public override void OnPickup()
{
    isHeld = true;
}

public override void OnDrop()
{
    isHeld = false;
}

A more minimal example (which I've not tested):

private void Update()
{
    transform.rotation = Quaternion.identity;
}
@evolvedant
Copy link
Contributor

I just tested this and was not able to reproduce the issue. The object will not rotate in CyanEmu as would be expected based on the example code you provided. I think this issue should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants