Forum rules - please read before posting.

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.