Forum rules - please read before posting.
Tech questions during the weekend? Drop in on the community Discord channel!

Best way to make a turntable?

Hiya
So I have a lever which currently detects when a button is being held down and released, but id like for when the button is held down, a mesh is rotated and keeps rotating until the mouse is up. How would I go about doing this with AC? Thanks!

Comments

  • So the cursor position doesn't matter - only that a button is held?

    Doesn't seem like AC even needs to be involved - a custom script to detect the button input, and rotate an object if so - would be best. Something like:

    float turnSpeed = 5f;
    void Update ()
    {
        if (Input.GetButton ("MyButton"))
        {
            transform.Rotate (transform.up, turnSpeed * Time.deltaTime);
        }
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.
Do NOT follow this link or you will be banned from the site!