I’ve just written the spin code (and made it framerate independent with DeltaTime). Unfortunately, it doesn’t commence spinning until the previously made Dropper cube appears and drops. It is linked, since I can change the drop-time variable and the spinner will always start when the drop-time variable goes off.
Blockquote
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dropper : MonoBehaviour
{
[SerializeField] float dropTime = 5.0f;
Rigidbody rigid;
MeshRenderer meshy;
// Start is called before the first frame update
void Start()
{
rigid = GetComponent<Rigidbody>();
rigid.useGravity = false;
meshy = GetComponent<MeshRenderer>();
meshy.enabled = false;
}
// Update is called once per frame
void Update()
{
if(dropTime > Time.time)
{
rigid.useGravity = true;
meshy.enabled = true;
}
}
}